Skip to content

Commit

Permalink
fix permission error
Browse files Browse the repository at this point in the history
  • Loading branch information
taempark committed Apr 17, 2023
1 parent 6cc3819 commit ddb74e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/erigon/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: erigon
description: A Helm chart for Ethereum Execution Engine for efficiency frontier, erigon.
type: application
version: 0.0.2
version: 0.0.3
appVersion: v1.10.26
3 changes: 3 additions & 0 deletions charts/erigon/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
- |
rm -rf {{ .Values.persistence.mountDir }}{{ .Values.dataPath }}/LOCK # remove lock
rm -rf {{ .Values.persistence.mountDir }}{{ .Values.dataPath }}/nodekey # remove nodekey
mkdir -p {{ .Values.persistence.mountDir }}{{ .Values.dataPath }}
chown -R 1000:1000 {{ .Values.persistence.mountDir }}{{ .Values.dataPath }}/
chmod -R g+w {{ .Values.persistence.mountDir }}{{ .Values.dataPath }}/
image: busybox
Expand All @@ -44,6 +45,8 @@ spec:
wget -O {{ .Values.persistence.mountDir }}/imported.tar {{ .Values.importTarURL }} # download from URL
rm -rf {{ .Values.persistence.mountDir }}{{ .Values.dataPath }} # clean dir
mkdir -p {{ .Values.persistence.mountDir }}{{ .Values.dataPath }}
chown -R 1000:1000 {{ .Values.persistence.mountDir }}{{ .Values.dataPath }}/
chmod -R g+w {{ .Values.persistence.mountDir }}{{ .Values.dataPath }}/
echo "extracting tar..."
tar -xf {{ .Values.persistence.mountDir }}/imported.tar -C {{ .Values.persistence.mountDir }}{{ .Values.dataPath }}/
rm -rf {{ .Values.persistence.mountDir }}/imported.tar
Expand Down

0 comments on commit ddb74e3

Please sign in to comment.