diff options
-rwxr-xr-x | .packager/hooks/postinst | 4 | ||||
-rw-r--r-- | .pkgr.yml | 2 | ||||
-rw-r--r-- | go.mod | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/.packager/hooks/postinst b/.packager/hooks/postinst index efae87ad..dcecc701 100755 --- a/.packager/hooks/postinst +++ b/.packager/hooks/postinst @@ -8,8 +8,8 @@ APP_USER=$(${CLI} config:get APP_USER) APP_GROUP=$(${CLI} config:get APP_GROUP) APP_CONFIG="/etc/${APP_NAME}/conf/app.ini" -mkdir -p $(dirname ${APP_CONFIG}) -chown "${APP_USER}"."${APP_GROUP}" $(dirname ${APP_CONFIG}) +mkdir -p "$(dirname ${APP_CONFIG})" +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}" sed -i "s|RUN_USER = git|RUN_USER = ${APP_USER}|" ${APP_CONFIG} @@ -33,4 +33,4 @@ before: after: - mv bin/gogs gogs after_install: ./.packager/hooks/postinst -buildpack: https://github.com/heroku/heroku-buildpack-go.git#v126 +buildpack: https://github.com/heroku/heroku-buildpack-go.git @@ -70,4 +70,5 @@ require ( xorm.io/xorm v0.8.0 ) -// +heroku goVersion go1.13beta1 +// +heroku goVersion go1.13 +// +heroku install ./ |