Making script work with new HA

This commit is contained in:
Alexandre
2022-05-10 08:23:40 +02:00
parent 71f6574c1c
commit 917a0df8ab
61 changed files with 610 additions and 0 deletions

View File

@@ -31,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