Support read-only user-scripts

This commit is contained in:
Kjeld Schouten-Lebbing
2022-04-06 21:04:50 +02:00
committed by GitHub
parent 6cb4fd6f96
commit d8faf8d04e

View File

@@ -10,7 +10,7 @@ umask ${UMASK}
echo "---Checking for optional scripts---"
if [ -f /opt/scripts/user.sh ]; then
echo "---Found optional script, executing---"
chmod +x /opt/scripts/user.sh
chmod -f +x /opt/scripts/user.sh ||:
/opt/scripts/user.sh
else
echo "---No optional script found, continuing---"