Update 98-script-setup.bash

pull/6/head
RandomNinjaAtk 2 years ago committed by GitHub
parent 45abb8a738
commit cbcf867a5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,14 +1,20 @@
#!/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
if [ ! -d "/config/extended/scripts" ]; then
mkdir -p "/config/extended/scripts"
else
echo "Updating scripts..."
echo "Removing previous scripts..."
rm -rf /config/extended/scripts/*
fi
if [ -d "/config/lidarr-extended/scripts" ]; then
if [ -d "/config/extended/scripts" ]; then
echo "Importing extended scripts..."
cp -r /scripts/* /config/extended/scripts/
fi
@ -22,7 +28,6 @@ if [ ! -d "/config/extended/logs" ]; then
mkdir -p "/config/extended/logs"
fi
# set permissions
chmod 777 /config/extended
chmod 777 /config/extended/cache

Loading…
Cancel
Save