diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-03-01 22:46:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-01 22:46:39 +0800 |
commit | 0b86aa5d29478c2316f6f29eb5fdcfb074b459b6 (patch) | |
tree | 08907aca2ae9a1e01d50af474ff7bb0a1f3dd094 /.packager | |
parent | f04b2d43509816ecfda93aa5d0d1fd685d9b860f (diff) |
pkgr: update heroku-buildpack to latest (#5957)
Diffstat (limited to '.packager')
-rwxr-xr-x | .packager/hooks/postinst | 4 |
1 files changed, 2 insertions, 2 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} |