mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-23 04:37:14 +02:00
Update tunarr.sh
This commit is contained in:
+2
-7
@@ -33,17 +33,12 @@ function update_script() {
|
|||||||
systemctl stop tunarr
|
systemctl stop tunarr
|
||||||
msg_ok "Stopped Service"
|
msg_ok "Stopped Service"
|
||||||
|
|
||||||
msg_info "Creating Backup"
|
create_backup /root/.local/share/tunarr
|
||||||
if [ -d "/root/.local/share/tunarr" ]; then
|
|
||||||
$STD tar -czf "/opt/${APP}_backup_$(date +%F).tar.gz" /root/.local/share/tunarr
|
|
||||||
msg_ok "Backup Created"
|
|
||||||
else
|
|
||||||
msg_error "Backup failed: /root/.local/share/tunarr does not exist"
|
|
||||||
fi
|
|
||||||
|
|
||||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "tunarr" "chrisbenincasa/tunarr" "prebuild" "latest" "/opt/tunarr" "*linux-$(arch_resolve "x64" "arm64").tar.gz"
|
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "tunarr" "chrisbenincasa/tunarr" "prebuild" "latest" "/opt/tunarr" "*linux-$(arch_resolve "x64" "arm64").tar.gz"
|
||||||
cd /opt/tunarr
|
cd /opt/tunarr
|
||||||
mv tunarr* tunarr
|
mv tunarr* tunarr
|
||||||
|
restore_backup
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Service"
|
||||||
systemctl start tunarr
|
systemctl start tunarr
|
||||||
|
|||||||
Reference in New Issue
Block a user