aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.packager/hooks/postinst4
-rw-r--r--.pkgr.yml2
-rw-r--r--go.mod3
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}
diff --git a/.pkgr.yml b/.pkgr.yml
index f46150c0..d2e8486b 100644
--- a/.pkgr.yml
+++ b/.pkgr.yml
@@ -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
diff --git a/go.mod b/go.mod
index 9b5e38c7..e8799f5a 100644
--- a/go.mod
+++ b/go.mod
@@ -70,4 +70,5 @@ require (
xorm.io/xorm v0.8.0
)
-// +heroku goVersion go1.13beta1
+// +heroku goVersion go1.13
+// +heroku install ./