chmod after init copy
All checks were successful
build container icingaweb2 / build (push) Successful in 4m4s
All checks were successful
build container icingaweb2 / build (push) Successful in 4m4s
This commit is contained in:
3
init.sh
3
init.sh
@@ -15,6 +15,8 @@ if [ -z "$(ls -A /data)" ]; then
|
|||||||
cp -ax /data-init/* /data
|
cp -ax /data-init/* /data
|
||||||
rm -rf /data-init
|
rm -rf /data-init
|
||||||
|
|
||||||
|
chmod -R 33:33 /data
|
||||||
|
|
||||||
## check if a var exist they is must have for deployment
|
## check if a var exist they is must have for deployment
|
||||||
## because without this check, moduls init everytime and this blocks /setup page
|
## because without this check, moduls init everytime and this blocks /setup page
|
||||||
if [ ! -z "$ICINGAWEB2_DEFAULT_ADMIN_USER" ]; then
|
if [ ! -z "$ICINGAWEB2_DEFAULT_ADMIN_USER" ]; then
|
||||||
@@ -46,5 +48,6 @@ fi
|
|||||||
## init apache
|
## init apache
|
||||||
. /etc/apache2/envvars
|
. /etc/apache2/envvars
|
||||||
|
|
||||||
|
# icinga2 daemon -C -X ?
|
||||||
# run CMD
|
# run CMD
|
||||||
exec "$@"
|
exec "$@"
|
||||||
Reference in New Issue
Block a user