diff --git a/ct/inventree.sh b/ct/inventree.sh index f59fffa5c..0d7c92a18 100644 --- a/ct/inventree.sh +++ b/ct/inventree.sh @@ -20,19 +20,19 @@ color catch_errors function update_script() { - header_info - check_container_storage - check_container_resources + header_info + check_container_storage + check_container_resources - if [[ ! -d "/opt/inventree" ]]; then - msg_error "No ${APP} Installation Found!" + if [[ ! -d "/opt/inventree" ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + msg_info "Updating $APP" + $STD apt-get update + $STD apt-get install --only-upgrade inventree -y + msg_ok "Updated $APP" exit - fi - msg_info "Updating $APP" - $STD apt-get update - $STD apt-get install --only-upgrade inventree -y - msg_ok "Updated $APP" - exit } start