mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-27 19:04:05 +02:00
Remove bashio log
This commit is contained in:
@@ -16,7 +16,7 @@ for SCRIPTS in /etc/cont-init.d/*; do
|
|||||||
chown "$(id -u)":"$(id -g)" "$SCRIPTS"
|
chown "$(id -u)":"$(id -g)" "$SCRIPTS"
|
||||||
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"
|
echo -e "\e[38;5;214m$(date) WARNING: Script executed with user $(id -u):$(id -g), things can break and chown won't work\e[0m"
|
||||||
# Disable chown and chmod 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/ chown / true # chown /g" "$SCRIPTS"
|
||||||
|
|||||||
Reference in New Issue
Block a user