From c3669c5d30953bfb5f02892524ec7dc7029080fd Mon Sep 17 00:00:00 2001 From: kjeld Schouten-Lebbing Date: Thu, 27 Feb 2020 20:42:01 +0100 Subject: [PATCH] remove update from apps with in-app updater --- update/jackett.sh | 5 +---- update/lidarr.sh | 5 +---- update/plex.sh | 9 ++------- update/radarr.sh | 5 +---- update/sonarr.sh | 5 +---- update/tautulli.sh | 3 +-- 6 files changed, 7 insertions(+), 25 deletions(-) diff --git a/update/jackett.sh b/update/jackett.sh index 3a7d8c22..1c594b8a 100755 --- a/update/jackett.sh +++ b/update/jackett.sh @@ -1,10 +1,7 @@ iocage exec jackett service jackett stop iocage update jackett iocage exec jackett "pkg update && pkg upgrade -y" -iocage exec jackett "fetch https://github.com/Jackett/Jackett/releases/download/v0.11.502/Jackett.Binaries.Mono.tar.gz -o /usr/local/share" -iocage exec jackett "tar -xzvf /usr/local/share/Jackett.Binaries.Mono.tar.gz -C /usr/local/share" -iocage exec jackett rm /usr/local/share/Jackett.Binaries.Mono.tar.gz iocage exec jackett chown -R jackett:jackett /usr/local/share/Jackett /config cp ../includes/jackett-conf/jackett.rc /mnt/tank/iocage/jails/jackett/root/usr/local/etc/rc.d/jackett iocage exec jackett chmod u+x /usr/local/etc/rc.d/jackett -iocage exec jackett service jackett start \ No newline at end of file +iocage exec jackett service jackett restart \ No newline at end of file diff --git a/update/lidarr.sh b/update/lidarr.sh index 12003d49..77199c20 100755 --- a/update/lidarr.sh +++ b/update/lidarr.sh @@ -1,10 +1,7 @@ iocage exec lidarr service lidarr stop iocage update lidarr iocage exec lidarr "pkg update && pkg upgrade -y" -iocage exec lidarr "fetch https://github.com/lidarr/Lidarr/releases/download/v0.2.0.371/Lidarr.develop.0.2.0.371.linux.tar.gz -o /usr/local/share" -iocage exec lidarr "tar -xzvf /usr/local/share/Lidarr.develop.0.2.0.371.linux.tar.gz -C /usr/local/share" -iocage exec lidarr "rm /usr/local/share/v0.2.0.371/Lidarr.develop.0.2.0.371.linux.tar.gz" iocage exec lidarr chown -R lidarr:lidarr /usr/local/share/Lidarr /config cp ../includes/lidarr-conf/lidarr.rc /mnt/tank/iocage/jails/lidarr/root/usr/local/etc/rc.d/lidarr iocage exec lidarr chmod u+x /usr/local/etc/rc.d/lidarr -iocage exec lidarr service lidarr start \ No newline at end of file +iocage exec lidarr service lidarr restart \ No newline at end of file diff --git a/update/plex.sh b/update/plex.sh index e0ed9634..4a184251 100755 --- a/update/plex.sh +++ b/update/plex.sh @@ -2,12 +2,7 @@ iocage exec plex service plexmediaserver_plexpass stop iocage update plex iocage exec plex "pkg update && pkg upgrade -y" iocage exec plex chown -R plex:plex /usr/local/share/plexmediaserver-plexpass/ -iocage exec plex service plexmediaserver_plexpass start +iocage exec plex service plexmediaserver_plexpass restart sleep 10s -echo "Waiting 20s to stop plex" -iocage stop plex -sleep 10s -echo "Waiting 20s to start plex" -iocage start plex iocage exec plex service plexmediaserver_plexpass start -echo "Finished installing plex" \ No newline at end of file +echo "Finished updating plex" \ No newline at end of file diff --git a/update/radarr.sh b/update/radarr.sh index 7efc1334..3844aac4 100755 --- a/update/radarr.sh +++ b/update/radarr.sh @@ -1,10 +1,7 @@ iocage exec radarr service radarr stop iocage update radarr iocage exec radarr "pkg update && pkg upgrade -y" -iocage exec radarr "fetch https://github.com/Radarr/Radarr/releases/download/v0.2.0.1480/Radarr.develop.0.2.0.1480.linux.tar.gz -o /usr/local/share" -iocage exec radarr "tar -xzvf /usr/local/share/Radarr.develop.0.2.0.1480.linux.tar.gz -C /usr/local/share" -iocage exec radarr rm /usr/local/share/Radarr.develop.0.2.0.1480.linux.tar.gz iocage exec radarr chown -R radarr:radarr /usr/local/share/Radarr /config cp ../includes/radarr-conf/radarr.rc /mnt/tank/iocage/jails/radarr/root/usr/local/etc/rc.d/radarr iocage exec radarr chmod u+x /usr/local/etc/rc.d/radarr -iocage exec radarr service radarr start \ No newline at end of file +iocage exec radarr service radarr restart \ No newline at end of file diff --git a/update/sonarr.sh b/update/sonarr.sh index a3b4f3c2..ea80f064 100755 --- a/update/sonarr.sh +++ b/update/sonarr.sh @@ -1,10 +1,7 @@ iocage exec sonarr service sonarr stop iocage update sonarr iocage exec sonarr "pkg update && pkg upgrade -y" -iocage exec sonarr "fetch http://download.sonarr.tv/v2/master/mono/NzbDrone.master.tar.gz -o /usr/local/share" -iocage exec sonarr "tar -xzvf /usr/local/share/NzbDrone.master.tar.gz -C /usr/local/share" -iocage exec sonarr rm /usr/local/share/NzbDrone.master.tar.gz iocage exec sonarr chown -R sonarr:sonarr /usr/local/share/NzbDrone /config cp ../includes/sonarr-conf/sonarr.rc /mnt/tank/iocage/jails/sonarr/root/usr/local/etc/rc.d/sonarr iocage exec sonarr chmod u+x /usr/local/etc/rc.d/sonarr -iocage exec sonarr service sonarr start \ No newline at end of file +iocage exec sonarr service sonarr restart \ No newline at end of file diff --git a/update/tautulli.sh b/update/tautulli.sh index a31bcab1..7a2576b8 100755 --- a/update/tautulli.sh +++ b/update/tautulli.sh @@ -1,8 +1,7 @@ iocage exec tautulli service tautulli stop iocage update tautulli iocage exec tautulli "pkg update && pkg upgrade -y" -iocage exec tautulli "cd /usr/local/share/Tautulli && git pull" iocage exec tautulli chown -R tautulli:tautulli /usr/local/share/Tautulli /config iocage exec tautulli cp /usr/local/share/Tautulli/init-scripts/init.freenas /usr/local/etc/rc.d/tautulli iocage exec tautulli chmod u+x /usr/local/etc/rc.d/tautulli -iocage exec tautulli service tautulli start \ No newline at end of file +iocage exec tautulli service tautulli restart \ No newline at end of file