mirror of https://github.com/go-gitea/gitea.git
Merge pull request #638 from pkgr/pkgr
Fix packages generated on packager.io
This commit is contained in:
commit
b53f6357fc
|
@ -2,10 +2,7 @@ targets:
|
||||||
ubuntu-14.04:
|
ubuntu-14.04:
|
||||||
ubuntu-12.04:
|
ubuntu-12.04:
|
||||||
debian-7:
|
debian-7:
|
||||||
centos6:
|
centos-6:
|
||||||
build_dependencies:
|
|
||||||
- mercurial
|
|
||||||
- bzr
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- git
|
- git
|
||||||
before:
|
before:
|
||||||
|
|
|
@ -27,12 +27,16 @@ case "$1" in
|
||||||
chown ${APP_USER}.${APP_GROUP} $(dirname ${APP_CONFIG})
|
chown ${APP_USER}.${APP_GROUP} $(dirname ${APP_CONFIG})
|
||||||
[ -f ${APP_CONFIG} ] || ${CLI} run cp conf/app.ini ${APP_CONFIG}
|
[ -f ${APP_CONFIG} ] || ${CLI} run cp conf/app.ini ${APP_CONFIG}
|
||||||
${CLI} config:set USER=${APP_USER}
|
${CLI} config:set USER=${APP_USER}
|
||||||
${CLI} config:set GOGS_CUSTOM="/etc/${APP_NAME}"
|
|
||||||
PORT=$(${CLI} config:get PORT || echo "6000")
|
PORT=$(${CLI} config:get PORT || echo "6000")
|
||||||
sed -i "s|HTTP_PORT = 3000|HTTP_PORT = ${PORT}|" ${APP_CONFIG}
|
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_USER = git|RUN_USER = ${APP_USER}|" ${APP_CONFIG}
|
||||||
sed -i "s|RUN_MODE = dev|RUN_MODE = prod|" ${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
|
# scale
|
||||||
${CLI} scale web=1 || true
|
${CLI} scale web=1 || true
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue