mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2026-02-01 19:57:10 +01:00
Updated entrypoint to chown only in <4
This commit is contained in:
@@ -40,4 +40,3 @@ stdout_logfile=/dev/stdout
|
|||||||
stdout_logfile_maxbytes=0
|
stdout_logfile_maxbytes=0
|
||||||
stderr_logfile=/dev/stderr
|
stderr_logfile=/dev/stderr
|
||||||
stderr_logfile_maxbytes=0
|
stderr_logfile_maxbytes=0
|
||||||
|
|
||||||
|
|||||||
@@ -82,6 +82,11 @@ elif [ -d "$BAK_PUBLIC_PATH/logo" ]; then
|
|||||||
fi
|
fi
|
||||||
rm -rf "$BAK_PUBLIC_PATH"
|
rm -rf "$BAK_PUBLIC_PATH"
|
||||||
|
|
||||||
|
# Set permission for web server to create/update files (only <v4)
|
||||||
|
if [[ ${str::1} -le 4 ]]; then
|
||||||
|
chown -R "$INVOICENINJA_USER":www-data /var/www/app/storage /var/www/app/public /var/www/app/bootstrap
|
||||||
|
fi
|
||||||
|
|
||||||
# Initialize values that might be stored in a file
|
# Initialize values that might be stored in a file
|
||||||
file_env 'APP_KEY'
|
file_env 'APP_KEY'
|
||||||
file_env 'API_SECRET'
|
file_env 'API_SECRET'
|
||||||
|
|||||||
Reference in New Issue
Block a user