Update 00-aaa_dockerfile_backup.sh

This commit is contained in:
Alexandre
2022-05-10 09:04:35 +02:00
committed by GitHub
parent 276df3e1b7
commit d685fa88b2

View File

@@ -1,5 +1,4 @@
#!/bin/bash
# shellcheck disable=SC2116
# If dockerfile failed install manually
@@ -32,3 +31,13 @@ if [ -e "/ENVFILE" ]; then
&& eval /./automatic_packages.sh "${PACKAGES:-}" \
&& rm /automatic_packages.sh
fi
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
for scripts in $MODULES; do
echo "$scripts : executing"
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
chmod a+x /etc/cont-init.d/"$scripts"
/./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
rm /etc/cont-init.d/"$scripts"
done | tac
fi