Update entrypoint.sh to use ENV username

This commit is contained in:
Lee Ween Jiann
2021-01-10 22:34:49 +08:00
parent 4b5abbbd5e
commit bfc5625687
2 changed files with 8 additions and 8 deletions

View File

@@ -83,7 +83,7 @@ fi
rm -rf "$BAK_PUBLIC_PATH"
# Set permission for web server to create/update files
chown -R invoiceninja:www-data /var/www/app/storage /var/www/app/public /var/www/app/bootstrap
chown -R "$INVOICENINJA_USER":www-data /var/www/app/storage /var/www/app/public /var/www/app/bootstrap
# Initialize values that might be stored in a file
file_env 'APP_KEY'