diff --git a/root/etc/cont-init.d/30-install b/root/etc/cont-init.d/30-install index 64de8ea6f10a8b089a46a47a4a8e7c8544107c4c..f871dbc888b760ccd9151c279a0220a68126068b 100644 --- a/root/etc/cont-init.d/30-install +++ b/root/etc/cont-init.d/30-install @@ -19,6 +19,8 @@ if [ ! -f /config/www/sui.lock ]; then /config/www/ rm -Rf /tmp/sui touch /config/www/sui.lock +else + echo "**** lock-file found. Skipping installation... ****" fi # Permission Stuffs diff --git a/root/etc/cont-init.d/40-config b/root/etc/cont-init.d/40-config index 5bb6ad80bf2cba9f24e5b086a99307a2e54c4b5e..7255030f0808ae5c55def0b711f26eb56ddb27b0 100644 --- a/root/etc/cont-init.d/40-config +++ b/root/etc/cont-init.d/40-config @@ -1,29 +1,35 @@ #!/usr/bin/with-contenv bash -if [ ! -a /config/www/apps.json ]; then +if [ ! -f /config/www/apps.json ]; then cp -f \ /defaults/apps.json \ /config/www/apps.json sed -i \ "s/DOMAIN/${DOMAIN}/g" \ /config/www/apps.json +else + echo "**** apps.json-file found. Skipping installation... ****" fi -if [ ! -a /config/www/links.json ]; then +if [ ! -f /config/www/links.json ]; then cp -f \ /defaults/links.json \ /config/www/links.json +else + echo "**** links.json-file found. Skipping installation... ****" fi -if [ ! -a /config/www/index.html ]; then +if [ ! -f /config/www/index.html ]; then cp -f \ /defaults/index.html \ /config/www/index.html sed -i \ "s/PROTOCOL/${PROTOCOL}/g" \ /config/www/index.html +else + echo "**** index.html-file found. Skipping installation... ****" fi # Permissions Stuffs