Update start.sh

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

@ -1,7 +1,7 @@
#!/usr/bin/with-contenv bash #!/usr/bin/with-contenv bash
echo "Starting Script...." echo "Starting Script...."
processstartid="$(ps -A -o pid,cmd|grep "/config/lidarr/scripts/start.sh" | grep -v grep | head -n 1 | awk '{print $1}')" processstartid="$(ps -A -o pid,cmd|grep "/config/extended/scripts/start.sh" | grep -v grep | head -n 1 | awk '{print $1}')"
echo "To kill script, use the following command:" echo "To kill script, use the following command:"
echo "kill -9 $processstartid" echo "kill -9 $processstartid"
for (( ; ; )); do for (( ; ; )); do
@ -11,7 +11,7 @@ for (( ; ; )); do
chmod 777 "/config/extended/logs" chmod 777 "/config/extended/logs"
chown abc:abc "/config/extended/logs" chown abc:abc "/config/extended/logs"
fi fi
bash /config/lidarr/scripts/download.sh 2>&1 | tee "/config/extended/logs/script_run_${i}_$(date +"%Y_%m_%d_%I_%M_%p").log" > /proc/1/fd/1 2>/proc/1/fd/2 bash /config/extended/scripts/download.sh 2>&1 | tee "/config/extended/logs/script_run_${i}_$(date +"%Y_%m_%d_%I_%M_%p").log" > /proc/1/fd/1 2>/proc/1/fd/2
if [ -f "/config/extended/logs/log-cleanup" ]; then if [ -f "/config/extended/logs/log-cleanup" ]; then
rm "/config/extended/logs/log-cleanup" rm "/config/extended/logs/log-cleanup"
fi fi

Loading…
Cancel
Save