From 85cc309f8b7d28c6883320fd18b0f551a66e8336 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sat, 21 Oct 2023 11:00:50 -0400 Subject: [PATCH] Update nocodb.sh test --- ct/nocodb.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/ct/nocodb.sh b/ct/nocodb.sh index b46ee722..efb2eb76 100644 --- a/ct/nocodb.sh +++ b/ct/nocodb.sh @@ -56,9 +56,24 @@ if [[ ! -f /etc/systemd/system/nocodb.service ]]; then msg_error "No ${APP} Inst msg_info "Updating ${APP}" systemctl stop nocodb.service cd /opt/nocodb -rm nocodb +rm -rf nocodb curl -s http://get.nocodb.com/linux-x64 -o nocodb -L chmod +x nocodb +cat </etc/systemd/system/nocodb.service" +echo "[Unit] +Description=nocodb + +[Service] +Type=simple +Restart=always +User=root +WorkingDirectory=/opt/nocodb +ExecStart=/opt/nocodb/./nocodb + +[Install] +WantedBy=multi-user.target +EOF +systemctl daemon-reload systemctl start nocodb.service msg_ok "Updated Successfully" exit