mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-19 07:11:50 +02: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
|
fi
|
||||||
|
|
||||||
# Cleanup after execution
|
# Cleanup after execution
|
||||||
rm "$SCRIPTS"
|
sed -i '1a echo "Script already ran" && exit 0' "$SCRIPTS"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Start run scripts in services.d and s6-overlay/s6-rc.d if PID1
|
# Start run scripts in services.d and s6-overlay/s6-rc.d if PID1
|
||||||
|
|||||||
Reference in New Issue
Block a user