Update nocodb.sh

- default Debian 12
- new update path
This commit is contained in:
tteckster 2023-10-21 09:54:09 -04:00 committed by GitHub
parent f3c8d3c774
commit 1e62c159f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

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