Browse Source

pkgr: update heroku-buildpack to latest (#5957)

ᴜɴᴋɴᴡᴏɴ 4 years ago
parent
commit
0b86aa5d29
3 changed files with 5 additions and 4 deletions
  1. 2 2
      .packager/hooks/postinst
  2. 1 1
      .pkgr.yml
  3. 2 1
      go.mod

+ 2 - 2
.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}

+ 1 - 1
.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

+ 2 - 1
go.mod

@@ -70,4 +70,5 @@ require (
 	xorm.io/xorm v0.8.0
 )
 
-// +heroku goVersion go1.13beta1
+// +heroku goVersion go1.13
+// +heroku install ./