mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-08 08:35:57 +02:00
update
This commit is contained in:
@@ -17,8 +17,11 @@ for SCRIPTS in /etc/cont-init.d/*; do
|
|||||||
chmod a+x "$SCRIPTS"
|
chmod a+x "$SCRIPTS"
|
||||||
else
|
else
|
||||||
bashio::log.warning "Script executed with user $(id -u):$(id -g), things can break and chown won't work"
|
bashio::log.warning "Script executed with user $(id -u):$(id -g), things can break and chown won't work"
|
||||||
# Disable chown in scripts
|
# Disable chown and chmod in scripts
|
||||||
sed -i "s/chown /true # chown /g" "$SCRIPTS"
|
sed -i "s/^chown /true # chown /g" "$SCRIPTS"
|
||||||
|
sed -i "s/ chown / true # chown /g" "$SCRIPTS"
|
||||||
|
sed -i "s/^chmod /true # chmod /g" "$SCRIPTS"
|
||||||
|
sed -i "s/ chmod / true # chmod /g" "$SCRIPTS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get current shebang, if not available use another
|
# Get current shebang, if not available use another
|
||||||
|
|||||||
Reference in New Issue
Block a user