fix format
This commit is contained in:
parent
bebc562a65
commit
e3d766e754
|
|
@ -20,19 +20,19 @@ color
|
||||||
catch_errors
|
catch_errors
|
||||||
|
|
||||||
function update_script() {
|
function update_script() {
|
||||||
header_info
|
header_info
|
||||||
check_container_storage
|
check_container_storage
|
||||||
check_container_resources
|
check_container_resources
|
||||||
|
|
||||||
if [[ ! -d "/opt/inventree" ]]; then
|
if [[ ! -d "/opt/inventree" ]]; then
|
||||||
msg_error "No ${APP} Installation Found!"
|
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
|
exit
|
||||||
fi
|
|
||||||
msg_info "Updating $APP"
|
|
||||||
$STD apt-get update
|
|
||||||
$STD apt-get install --only-upgrade inventree -y
|
|
||||||
msg_ok "Updated $APP"
|
|
||||||
exit
|
|
||||||
}
|
}
|
||||||
|
|
||||||
start
|
start
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user