fix not running multiple scripts in /config/init

This commit is contained in:
MrMeeb 2023-07-21 10:11:17 +00:00
parent 73ef869c30
commit 28ec5906ac

View File

@ -43,7 +43,9 @@ fi
if [ -d /config/init ]; then
if [ "$(ls -A /config/init)" ]; then
echo "Running additional startup scripts."
bash /config/init/*
for f in /config/init/*.sh; do
bash "$f"
done
else
echo "/config/init is empty - no additional startup scripts detected."
fi