mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-26 02:04:58 +01:00
Update nocodb.sh
test
This commit is contained in:
parent
1e62c159f1
commit
85cc309f8b
17
ct/nocodb.sh
17
ct/nocodb.sh
@ -56,9 +56,24 @@ if [[ ! -f /etc/systemd/system/nocodb.service ]]; then msg_error "No ${APP} Inst
|
|||||||
msg_info "Updating ${APP}"
|
msg_info "Updating ${APP}"
|
||||||
systemctl stop nocodb.service
|
systemctl stop nocodb.service
|
||||||
cd /opt/nocodb
|
cd /opt/nocodb
|
||||||
rm nocodb
|
rm -rf nocodb
|
||||||
curl -s http://get.nocodb.com/linux-x64 -o nocodb -L
|
curl -s http://get.nocodb.com/linux-x64 -o nocodb -L
|
||||||
chmod +x nocodb
|
chmod +x nocodb
|
||||||
|
cat <<EOF >/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
|
systemctl start nocodb.service
|
||||||
msg_ok "Updated Successfully"
|
msg_ok "Updated Successfully"
|
||||||
exit
|
exit
|
||||||
|
Loading…
Reference in New Issue
Block a user