mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-25 10:42:53 +02:00
Update commafeed.sh
add update path
This commit is contained in:
parent
3f5fc485e6
commit
edd6eacdd3
@ -55,7 +55,19 @@ function default_settings() {
|
|||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
if [[ ! -d /opt/commafeed ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
if [[ ! -d /opt/commafeed ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||||
msg_error "There is currently no update path available."
|
msg_info "Stopping CommaFeed"
|
||||||
|
systemctl stop commafeed
|
||||||
|
msg_ok "Stopped CommaFeed"
|
||||||
|
|
||||||
|
msg_info "Updating CommaFeed"
|
||||||
|
cd /opt/commafeed
|
||||||
|
rm commafeed.jar
|
||||||
|
wget -q https://github.com/Athou/commafeed/releases/latest/download/commafeed.jar
|
||||||
|
msg_ok "Updated CommaFeed"
|
||||||
|
|
||||||
|
msg_info "Starting CommaFeed"
|
||||||
|
systemctl start commafeed
|
||||||
|
msg_ok "Update Completed Successfully"
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user