|
|
@ -23,7 +23,7 @@ var_disk="4"
|
|
|
|
var_cpu="1"
|
|
|
|
var_cpu="1"
|
|
|
|
var_ram="1024"
|
|
|
|
var_ram="1024"
|
|
|
|
var_os="debian"
|
|
|
|
var_os="debian"
|
|
|
|
var_version="11"
|
|
|
|
var_version="12"
|
|
|
|
variables
|
|
|
|
variables
|
|
|
|
color
|
|
|
|
color
|
|
|
|
catch_errors
|
|
|
|
catch_errors
|
|
|
@ -54,10 +54,12 @@ function update_script() {
|
|
|
|
header_info
|
|
|
|
header_info
|
|
|
|
if [[ ! -f /etc/systemd/system/nocodb.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
|
|
|
if [[ ! -f /etc/systemd/system/nocodb.service ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
|
|
|
msg_info "Updating ${APP}"
|
|
|
|
msg_info "Updating ${APP}"
|
|
|
|
|
|
|
|
systemctl stop nocodb.service
|
|
|
|
cd /opt/nocodb
|
|
|
|
cd /opt/nocodb
|
|
|
|
npm uninstall -s --save nocodb &>/dev/null
|
|
|
|
rm nocodb
|
|
|
|
npm install -s --save nocodb &>/dev/null
|
|
|
|
curl -s http://get.nocodb.com/linux-x64 -o nocodb -L
|
|
|
|
systemctl restart nocodb.service
|
|
|
|
chmod +x nocodb
|
|
|
|
|
|
|
|
systemctl start nocodb.service
|
|
|
|
msg_ok "Updated Successfully"
|
|
|
|
msg_ok "Updated Successfully"
|
|
|
|
exit
|
|
|
|
exit
|
|
|
|
}
|
|
|
|
}
|
|
|
|