Modify cleanup to echo message instead of removing script

Replace script removal with a message and exit.
This commit is contained in:
Alexandre
2025-09-16 14:44:05 +02:00
committed by GitHub
parent 1ed9026eba
commit cf6bc3ec12

View File

@@ -90,7 +90,7 @@ for SCRIPTS in /etc/cont-init.d/*; do
fi
# Cleanup after execution
rm "$SCRIPTS"
sed -i '1a echo "Script already ran" && exit 0' "$SCRIPTS"
done
# Start run scripts in services.d and s6-overlay/s6-rc.d if PID1