mirror of https://github.com/tteck/Proxmox.git
Compare commits
9 Commits
a5960b5621
...
d67f3561de
Author | SHA1 | Date |
---|---|---|
|
d67f3561de | |
|
628e979534 | |
|
d50b02b9ee | |
|
69a1e864e0 | |
|
008e3c5da5 | |
|
1b3eb9b365 | |
|
7c603249e5 | |
|
d5f93f927d | |
|
278b659671 |
|
@ -70,7 +70,7 @@ rm -rf iventoy*.tar.gz
|
||||||
msg_ok "Updated ${APP} LXC"
|
msg_ok "Updated ${APP} LXC"
|
||||||
|
|
||||||
msg_info "Starting ${APP} LXC"
|
msg_info "Starting ${APP} LXC"
|
||||||
systemctl start autobrr.service
|
systemctl start iventoy.service
|
||||||
msg_ok "Started ${APP} LXC"
|
msg_ok "Started ${APP} LXC"
|
||||||
msg_ok "Updated Successfully"
|
msg_ok "Updated Successfully"
|
||||||
exit
|
exit
|
||||||
|
|
|
@ -0,0 +1,60 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func)
|
||||||
|
# Copyright (c) 2021-2024 tteck
|
||||||
|
# Author: tteck (tteckster)
|
||||||
|
# License: MIT
|
||||||
|
# https://github.com/tteck/Proxmox/raw/main/LICENSE
|
||||||
|
|
||||||
|
if [[ "$1" == "" ]]; then
|
||||||
|
msg_error "App name missing"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
color
|
||||||
|
catch_errors
|
||||||
|
|
||||||
|
APP=$1
|
||||||
|
installdir="/opt/$1"
|
||||||
|
|
||||||
|
#Radarr
|
||||||
|
#Lidarr
|
||||||
|
#Readarr
|
||||||
|
branch="master"
|
||||||
|
|
||||||
|
#Whisparr
|
||||||
|
if [[ "$APP" == "Whisparr" ]]; then
|
||||||
|
branch="nightly"
|
||||||
|
fi
|
||||||
|
|
||||||
|
#Prowlarr
|
||||||
|
if [[ "$APP" == "Prowlarr" ]]; then
|
||||||
|
branch="develop"
|
||||||
|
fi
|
||||||
|
|
||||||
|
dlbase="https://${APP,,}.servarr.com/v1/update/$branch/updatefile?os=linux&runtime=netcore&arch=x64"
|
||||||
|
|
||||||
|
#Sonarr
|
||||||
|
if [[ "$APP" == "Sonarr" ]]; then
|
||||||
|
dlbase="https://services.sonarr.tv/v1/download/main/latest?version=4&os=linux&arch=x64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
msg_info "Stopping $APP"
|
||||||
|
systemctl stop ${APP,,}
|
||||||
|
msg_ok "Stopped $APP"
|
||||||
|
|
||||||
|
msg_info "Updating Dependencies"
|
||||||
|
apt-get update &>/dev/null
|
||||||
|
apt-get -y upgrade &>/dev/null
|
||||||
|
msg_ok "Updated Dependencies"
|
||||||
|
|
||||||
|
msg_info "Updating $APP"
|
||||||
|
wget -q --content-disposition "$dlbase"
|
||||||
|
rm -rf "$installdir"
|
||||||
|
tar -xzf ${APP^}.*.tar.gz -C /opt
|
||||||
|
chmod 775 "/opt/$APP"
|
||||||
|
rm -rf ${APP^}.*.tar.gz
|
||||||
|
msg_ok "Updated $APP"
|
||||||
|
|
||||||
|
|
||||||
|
systemctl start ${APP,,}
|
||||||
|
msg_ok "Started $APP"
|
Loading…
Reference in New Issue