From 1e62c159f1bd4f5117d815ba60f84c812666986a Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 21 Oct 2023 09:54:09 -0400 Subject: [PATCH] Update nocodb.sh - default Debian 12 - new update path --- ct/nocodb.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ct/nocodb.sh b/ct/nocodb.sh index 3c400a1e..b46ee722 100644 --- a/ct/nocodb.sh +++ b/ct/nocodb.sh @@ -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 }