Removed scripts execution

This commit is contained in:
Alexandre
2022-08-06 23:57:43 +02:00
committed by GitHub
parent efaa73e58f
commit adb6dfd2ce

View File

@@ -33,15 +33,15 @@ if [ -e "/ENVFILE" ]; then
&& rm /automatic_packages.sh && rm /automatic_packages.sh
fi fi
if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then #if [ -e "/MODULESFILE" ] && [ ! -f /entrypoint.sh ]; then
for scripts in $MODULES; do # for scripts in $MODULES; do
echo "$scripts : executing" # echo "$scripts : executing"
chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts" # chown "$(id -u)":"$(id -g)" /etc/cont-init.d/"$scripts"
chmod a+x /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 $?" # /./etc/cont-init.d/"$scripts" || echo "/etc/cont-init.d/$scripts: exiting $?"
rm /etc/cont-init.d/"$scripts" # rm /etc/cont-init.d/"$scripts"
done | tac # done | tac
fi #fi
####################### #######################
# Correct permissions # # Correct permissions #