mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-30 02:14:34 +01:00
Update overseerr.sh
add update path
This commit is contained in:
parent
34b16c861e
commit
79fb2c3098
@ -53,7 +53,21 @@ function default_settings() {
|
|||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
if [[ ! -d /opt/overseerr ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
if [[ ! -d /opt/overseerr ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||||
msg_error "There is currently no update path available."
|
msg_info "Updating $APP"
|
||||||
|
systemctl stop overseerr
|
||||||
|
cd /opt/overseerr
|
||||||
|
output=$(git pull)
|
||||||
|
git pull &>/dev/null
|
||||||
|
if echo "$output" | grep -q "Already up to date."
|
||||||
|
then
|
||||||
|
msg_info " $APP is already up to date."
|
||||||
|
systemctl start overseerr
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
yarn install &>/dev/null
|
||||||
|
yarn build &>/dev/null
|
||||||
|
systemctl start overseerr
|
||||||
|
msg_ok "Updated $APP"
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user