From dcd8856f8b88ba9ec3eab842f9a07b7c4a5e093c Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 9 Jun 2022 21:34:20 +0200 Subject: [PATCH] Update 00-aaa_dockerfile_backup.sh --- .../etc/cont-init.d/00-aaa_dockerfile_backup.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/seafile/rootfs/etc/cont-init.d/00-aaa_dockerfile_backup.sh b/seafile/rootfs/etc/cont-init.d/00-aaa_dockerfile_backup.sh index 66f66d22b..efbecd224 100644 --- a/seafile/rootfs/etc/cont-init.d/00-aaa_dockerfile_backup.sh +++ b/seafile/rootfs/etc/cont-init.d/00-aaa_dockerfile_backup.sh @@ -2,9 +2,6 @@ # If dockerfile failed install manually -echo "forced pause" -sleep 30000000 - ############################## # Automatic modules download # ############################## @@ -16,7 +13,7 @@ if [ -e "/MODULESFILE" ]; then if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash) >/dev/null; fi \ && if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \ && mkdir -p /etc/cont-init.d \ - && for scripts in $MODULES; do echo "$scripts" && curl -k -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \ + && for scripts in $MODULES; do echo "$scripts" && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/$scripts" -o /etc/cont-init.d/"$scripts" && [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] || (echo "script failed to install $scripts" && exit 1); done \ && chmod -R 755 /etc/cont-init.d fi @@ -29,7 +26,7 @@ if [ -e "/ENVFILE" ]; then if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash) >/dev/null; fi \ && if ! command -v curl >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends curl || apk add --no-cache curl) >/dev/null; fi \ - && curl -k -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \ + && curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/automatic_packages.sh" --output /automatic_packages.sh \ && chmod 777 /automatic_packages.sh \ && eval /./automatic_packages.sh "${PACKAGES:-}" \ && rm /automatic_packages.sh @@ -44,3 +41,9 @@ if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then rm /etc/cont-init.d/"$scripts" done | tac fi + +####################### +# Correct permissions # +####################### +[ -d /etc/services.d ] && chmod -R 777 /etc/services.d +[ -d /etc/cont-init.d ] && chmod -R 777 /etc/cont-init.d