merge user config file
This commit is contained in:
parent
901a9ace7c
commit
7aaa34b8d6
|
@ -50,3 +50,5 @@ ENABLE_NOTIFY_MAIL = true
|
||||||
MODE = console
|
MODE = console
|
||||||
; used for xorm.log
|
; used for xorm.log
|
||||||
ROOT_PATH = /run/gogs
|
ROOT_PATH = /run/gogs
|
||||||
|
|
||||||
|
|
||||||
|
|
3
start.sh
3
start.sh
|
@ -65,6 +65,9 @@ sed -e "s/##DOMAIN/${APP_DOMAIN}/g" \
|
||||||
-e "s/##SECRET_KEY/$(pwgen -1 -s)/g" \
|
-e "s/##SECRET_KEY/$(pwgen -1 -s)/g" \
|
||||||
/home/git/app.ini.template > "/run/gogs/app.ini"
|
/home/git/app.ini.template > "/run/gogs/app.ini"
|
||||||
|
|
||||||
|
# merge any user config file
|
||||||
|
[[ -f /app/data/app.ini ]] && echo "/app/data/app.ini" >> "/run/gogs/app.ini"
|
||||||
|
|
||||||
mkdir -p /app/data/repository /app/data/ssh
|
mkdir -p /app/data/repository /app/data/ssh
|
||||||
|
|
||||||
chown -R git:git /app/data /run/gogs
|
chown -R git:git /app/data /run/gogs
|
||||||
|
|
Loading…
Reference in New Issue