fix: Only create conf directoy if not exists (#211)
Only create conf directory if not yet exists fixes #210 Co-authored-by: Lunny Xiao <[email protected]> Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/211 Reviewed-by: luhahn <[email protected]> Reviewed-by: justusbunsi <[email protected]> Co-authored-by: Michael Kriese <[email protected]> Co-committed-by: Michael Kriese <[email protected]>
This commit is contained in:
committed by
luhahn
co-authored by
Lunny Xiao
parent
ba0e8b18b5
commit
4ef9a3ec35
@@ -26,7 +26,7 @@ stringData:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
mkdir -p /data/git/.ssh
|
mkdir -p /data/git/.ssh
|
||||||
chmod -R 700 /data/git/.ssh
|
chmod -R 700 /data/git/.ssh
|
||||||
mkdir -p /data/gitea/conf
|
[ ! -d /data/gitea ] && mkdir -p /data/gitea/conf
|
||||||
|
|
||||||
# prepare temp directory structure
|
# prepare temp directory structure
|
||||||
mkdir -p "${GITEA_TEMP}"
|
mkdir -p "${GITEA_TEMP}"
|
||||||
|
|||||||
Reference in New Issue
Block a user