|
|
@ -1,14 +1,20 @@
|
|
|
|
#!/usr/bin/with-contenv bash
|
|
|
|
#!/usr/bin/with-contenv bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# create extended directory if missing
|
|
|
|
|
|
|
|
if [ ! -d "/config/extended" ]; then
|
|
|
|
|
|
|
|
mkdir -p "/config/extended"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# create scripts directory if missing
|
|
|
|
# create scripts directory if missing
|
|
|
|
if [ ! -d "/config/extended/scripts" ]; then
|
|
|
|
if [ ! -d "/config/extended/scripts" ]; then
|
|
|
|
mkdir -p "/config/extended/scripts"
|
|
|
|
mkdir -p "/config/extended/scripts"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
echo "Updating scripts..."
|
|
|
|
echo "Removing previous scripts..."
|
|
|
|
rm -rf /config/extended/scripts/*
|
|
|
|
rm -rf /config/extended/scripts/*
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ -d "/config/lidarr-extended/scripts" ]; then
|
|
|
|
if [ -d "/config/extended/scripts" ]; then
|
|
|
|
|
|
|
|
echo "Importing extended scripts..."
|
|
|
|
cp -r /scripts/* /config/extended/scripts/
|
|
|
|
cp -r /scripts/* /config/extended/scripts/
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
@ -22,7 +28,6 @@ if [ ! -d "/config/extended/logs" ]; then
|
|
|
|
mkdir -p "/config/extended/logs"
|
|
|
|
mkdir -p "/config/extended/logs"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# set permissions
|
|
|
|
# set permissions
|
|
|
|
chmod 777 /config/extended
|
|
|
|
chmod 777 /config/extended
|
|
|
|
chmod 777 /config/extended/cache
|
|
|
|
chmod 777 /config/extended/cache
|
|
|
|