fix ownership

This commit is contained in:
Youe Graillot 2022-11-25 21:37:14 +01:00
parent de86ac216b
commit a4b7cfb4f3
1 changed files with 11 additions and 0 deletions

View File

@ -31,6 +31,17 @@ if [ ! -x /usr/local/bin/clean-downloads.sh ]; then
chmod +x /usr/local/bin/*.sh chmod +x /usr/local/bin/*.sh
fi fi
if [ "$(stat -c '%g' /music)" != "$PGUID" ]; then
echo "Changing ownership of /music"
chown "$PUID:$PGID" /music
fi
if [ "$(stat -c '%g' /downloads)" != "$PGUID" ]; then
echo "Changing ownership of /downloads"
chown "$PUID:$PGID" /downloads
fi
echo " echo "
---------------------------------------------------------------------- ----------------------------------------------------------------------
LIDARR SETUP LIDARR SETUP