mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-03 06:14:07 +02:00
Update 00-aaa_dockerfile_backup.sh
This commit is contained in:
@@ -2,9 +2,6 @@
|
|||||||
|
|
||||||
# If dockerfile failed install manually
|
# If dockerfile failed install manually
|
||||||
|
|
||||||
echo "forced pause"
|
|
||||||
sleep 30000000
|
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
# Automatic modules download #
|
# 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 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 \
|
&& 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 \
|
&& 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
|
&& chmod -R 755 /etc/cont-init.d
|
||||||
fi
|
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 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 \
|
&& 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 \
|
&& chmod 777 /automatic_packages.sh \
|
||||||
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
|
||||||
&& rm /automatic_packages.sh
|
&& rm /automatic_packages.sh
|
||||||
@@ -44,3 +41,9 @@ if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
|
|||||||
rm /etc/cont-init.d/"$scripts"
|
rm /etc/cont-init.d/"$scripts"
|
||||||
done | tac
|
done | tac
|
||||||
fi
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user