1
0
mirror of https://github.com/tteck/Proxmox.git synced 2024-12-25 10:42:53 +02:00

Update octoprint.sh

create update script
This commit is contained in:
tteckster 2023-05-01 13:13:59 -04:00 committed by GitHub
parent 5405f4dc9d
commit e8bd1c21a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,10 +53,18 @@ function default_settings() {
function update_script() {
header_info
if [[ ! -d /opt/octoprint ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_info "Updating $APP LXC"
apt-get update &>/dev/null
apt-get -y upgrade &>/dev/null
msg_ok "Updated $APP LXC"
msg_info "Stopping OctoPrint"
systemctl stop octoprint
msg_ok "Stopped OctoPrint"
msg_info "Updating OctoPrint"
pip3 install octoprint --upgrade &>/dev/null
msg_ok "Updated OctoPrint"
msg_info "Starting OctoPrint"
systemctl start octoprint
msg_ok "Started OctoPrint"
msg_ok "Updated Successfully"
exit
}