mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
Modify cleanup to echo message instead of removing script
Replace script removal with a message and exit.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user