mirror of https://github.com/tteck/Proxmox.git
Update arr-update.sh
This commit is contained in:
parent
7c603249e5
commit
1b3eb9b365
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func)
|
||||||
# Copyright (c) 2021-2024 tteck
|
# Copyright (c) 2021-2024 tteck
|
||||||
# Author: tteck (tteckster)
|
# Author: tteck (tteckster)
|
||||||
# License: MIT
|
# License: MIT
|
||||||
|
@ -11,8 +11,6 @@ installdir="/opt/$1"
|
||||||
branch="master"
|
branch="master"
|
||||||
dlbase="https://$app.servarr.com/v1/update/$branch/updatefile?os=linux&runtime=netcore&arch=x64"
|
dlbase="https://$app.servarr.com/v1/update/$branch/updatefile?os=linux&runtime=netcore&arch=x64"
|
||||||
|
|
||||||
echo "$dlbase"
|
|
||||||
|
|
||||||
msg_info "Stopping $app"
|
msg_info "Stopping $app"
|
||||||
systemctl stop $app
|
systemctl stop $app
|
||||||
|
|
||||||
|
@ -26,7 +24,7 @@ wget -q --content-disposition "$dlbase"
|
||||||
rm -rf "$installdir"
|
rm -rf "$installdir"
|
||||||
tar -xzf ${app^}.*.tar.gz -C "/opt"
|
tar -xzf ${app^}.*.tar.gz -C "/opt"
|
||||||
msg_ok "Updated $app"
|
msg_ok "Updated $app"
|
||||||
rm -rf "${app^}.master.*.tar.gz"
|
rm -rf "${app^}.*.tar.gz"
|
||||||
|
|
||||||
systemctl start $app
|
systemctl start $app
|
||||||
msg_ok "Started $app"
|
msg_ok "Started $app"
|
||||||
|
|
Loading…
Reference in New Issue