Direct puid:pgid

This commit is contained in:
Alexandre
2023-09-13 11:37:15 +02:00
committed by GitHub
parent 3d85319544
commit bfef61c6a4
22 changed files with 67 additions and 67 deletions

View File

@@ -21,25 +21,25 @@ fi
if [ ! -d /jellyfin ]; then
echo "Creating /jellyfin"
mkdir -p /jellyfin
chown -R abc:abc /jellyfin
chown -R "$PUID:$PGID" /jellyfin
fi
if [ ! -d "$LOCATION"/tv ]; then
echo "Creating $LOCATION/tv"
mkdir -p "$LOCATION"/tv
chown -R abc:abc "$LOCATION"/tv
chown -R "$PUID:$PGID" "$LOCATION"/tv
fi
if [ ! -d "$LOCATION"/movies ]; then
echo "Creating $LOCATION/movies"
mkdir -p "$LOCATION"/movies
chown -R abc:abc "$LOCATION"/movies
chown -R "$PUID:$PGID" "$LOCATION"/movies
fi
if [ ! -d "$LOCATION" ]; then
echo "Creating $LOCATION"
mkdir -p "$LOCATION"
chown -R abc:abc "$LOCATION"
chown -R "$PUID:$PGID" "$LOCATION"
fi
# links
@@ -47,41 +47,41 @@ fi
if [ ! -d /jellyfin/cache ]; then
echo "Creating link for /jellyfin/cache"
mkdir -p "$LOCATION"/cache
chown -R abc:abc "$LOCATION"/cache
chown -R "$PUID:$PGID" "$LOCATION"/cache
ln -s "$LOCATION"/cache /jellyfin/cache
fi
if [ ! -d /jellyfin/data ]; then
echo "Creating link for /jellyfin/data"
mkdir -p "$LOCATION"/data
chown -R abc:abc "$LOCATION"/data
chown -R "$PUID:$PGID" "$LOCATION"/data
ln -s "$LOCATION"/data /jellyfin/data
fi
if [ ! -d /jellyfin/log ]; then
echo "Creating link for /jellyfin/log"
mkdir -p "$LOCATION"/log
chown -R abc:abc "$LOCATION"/log
chown -R "$PUID:$PGID" "$LOCATION"/log
ln -s "$LOCATION"/log /jellyfin/log
fi
if [ ! -d /jellyfin/metadata ]; then
echo "Creating link for /jellyfin/metadata"
mkdir -p "$LOCATION"/metadata
chown -R abc:abc "$LOCATION"/metadata
chown -R "$PUID:$PGID" "$LOCATION"/metadata
ln -s "$LOCATION"/metadata /jellyfin/metadata
fi
if [ ! -d /jellyfin/plugins ]; then
echo "Creating link for /jellyfin/plugins"
mkdir -p "$LOCATION"/plugins
chown -R abc:abc "$LOCATION"/plugins
chown -R "$PUID:$PGID" "$LOCATION"/plugins
ln -s "$LOCATION"/plugins /jellyfin/plugins
fi
if [ ! -d /jellyfin/root ]; then
echo "Creating link for /jellyfin/root"
mkdir -p "$LOCATION"/root
chown -R abc:abc "$LOCATION"/root
chown -R "$PUID:$PGID" "$LOCATION"/root
ln -s "$LOCATION"/root /jellyfin/root
fi