mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-30 04:14:04 +02:00
Update 00-aaa_dockerfile_backup.sh
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
# shellcheck disable=SC2015
|
# shellcheck disable=SC2015
|
||||||
# If dockerfile failed install manually
|
# If dockerfile failed install manually
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
# Automatic modules download #
|
# Automatic modules download #
|
||||||
##############################
|
##############################
|
||||||
@@ -15,10 +17,7 @@ if [ -e "/MODULESFILE" ]; then
|
|||||||
&& mkdir -p /etc/cont-init.d \
|
&& mkdir -p /etc/cont-init.d \
|
||||||
&& 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" \
|
&& 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")" != "" ] \
|
&& [ "$(sed -n '/\/bin/p;q' /etc/cont-init.d/"$scripts")" != "" ] \
|
||||||
&& echo "setting permission" && chmod 777 /etc/cont-init.d/"$scripts" || (echo "script failed to install $scripts" && exit 1); done
|
&& echo "setting permission" && chmod 755 /etc/cont-init.d/"$scripts" || (echo "script failed to install $scripts" && exit 1); done
|
||||||
|
|
||||||
echo "list files in scripts"
|
|
||||||
ls -l /etc/cont-init.d
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user