diff options
author | Cyril Rohr <cyril.rohr@gmail.com> | 2014-11-19 18:18:30 +0000 |
---|---|---|
committer | Cyril Rohr <cyril.rohr@gmail.com> | 2014-11-19 19:18:44 +0000 |
commit | f77680520f78e649ec170865c3d963026878e3b9 (patch) | |
tree | ebe02eaac99c97fc8ef3e2057aa675a8589f4f53 /packager | |
parent | 2d8c414f8c44e20619d6680b96044424ef6ebb2a (diff) | |
download | gitea-f77680520f78e649ec170865c3d963026878e3b9.tar.gz gitea-f77680520f78e649ec170865c3d963026878e3b9.zip |
Link custom app.ini to /etc/gogs/
Diffstat (limited to 'packager')
-rwxr-xr-x | packager/debian/postinst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packager/debian/postinst b/packager/debian/postinst index de357967a6..d1b37ac18d 100755 --- a/packager/debian/postinst +++ b/packager/debian/postinst @@ -27,12 +27,16 @@ case "$1" in chown ${APP_USER}.${APP_GROUP} $(dirname ${APP_CONFIG}) [ -f ${APP_CONFIG} ] || ${CLI} run cp conf/app.ini ${APP_CONFIG} ${CLI} config:set USER=${APP_USER} - ${CLI} config:set GOGS_CUSTOM="/etc/${APP_NAME}" PORT=$(${CLI} config:get PORT || echo "6000") sed -i "s|HTTP_PORT = 3000|HTTP_PORT = ${PORT}|" ${APP_CONFIG} sed -i "s|RUN_USER = git|RUN_USER = ${APP_USER}|" ${APP_CONFIG} sed -i "s|RUN_MODE = dev|RUN_MODE = prod|" ${APP_CONFIG} + # setup symlink towards custom conf + mkdir -p /opt/${APP_NAME}/custom/conf + chown -R ${APP_USER}.${APP_GROUP} /opt/${APP_NAME}/custom + ln -f -s ${APP_CONFIG} /opt/${APP_NAME}/custom/conf/app.ini + # scale ${CLI} scale web=1 || true ;; |