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 #!/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

Loading…
Cancel
Save