summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author无闻 <joe2010xtmf@163.com>2014-11-19 15:51:00 -0500
committer无闻 <joe2010xtmf@163.com>2014-11-19 15:51:00 -0500
commitb53f6357fc8765a0866cb6e3b31067e5b866012d (patch)
tree2a20150b907b70803a46b99ad7849920d3857e10
parent2d8c414f8c44e20619d6680b96044424ef6ebb2a (diff)
parent11ca3dedfbf91c2a92d66a5cab29accda5eaedfa (diff)
downloadgitea-b53f6357fc8765a0866cb6e3b31067e5b866012d.tar.gz
gitea-b53f6357fc8765a0866cb6e3b31067e5b866012d.zip
Merge pull request #638 from pkgr/pkgr
Fix packages generated on packager.io
-rw-r--r--.pkgr.yml5
-rwxr-xr-xpackager/debian/postinst6
2 files changed, 6 insertions, 5 deletions
diff --git a/.pkgr.yml b/.pkgr.yml
index 296920bece..23a52c8ddc 100644
--- a/.pkgr.yml
+++ b/.pkgr.yml
@@ -2,10 +2,7 @@ targets:
ubuntu-14.04:
ubuntu-12.04:
debian-7:
- centos6:
-build_dependencies:
- - mercurial
- - bzr
+ centos-6:
dependencies:
- git
before:
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
;;