mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-23 07:46:05 +02:00
Update ha_entrypoint_modif.sh
This commit is contained in:
@@ -8,15 +8,26 @@ set -e
|
|||||||
# Corrects permissions for s6 v3
|
# Corrects permissions for s6 v3
|
||||||
################################
|
################################
|
||||||
|
|
||||||
|
PUID="{PUID:-0}"
|
||||||
|
PGID="{PGID:-0}"
|
||||||
|
|
||||||
|
if [ -f /ha_entrypoint.sh ]; then
|
||||||
|
chown -R "$PUID:$PGID" /ha_entrypoint.sh
|
||||||
|
chmod -R 755 /ha_entrypoint.sh
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -d /etc/cont-init.d ]; then
|
if [ -d /etc/cont-init.d ]; then
|
||||||
|
chown -R "$PUID:$PGID" /etc/cont-init.d
|
||||||
chmod -R 755 /etc/cont-init.d
|
chmod -R 755 /etc/cont-init.d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d /etc/services.d ]; then
|
if [ -d /etc/services.d ]; then
|
||||||
|
chown -R "$PUID:$PGID" /etc/services.d
|
||||||
chmod -R 755 /etc/services.d
|
chmod -R 755 /etc/services.d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -d /etc/s6-rc.d ]; then
|
if [ -d /etc/s6-rc.d ]; then
|
||||||
|
chown -R "$PUID:$PGID" /etc/s6-rc.d
|
||||||
chmod -R 755 /etc/s6-rc.d
|
chmod -R 755 /etc/s6-rc.d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user