mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-16 12:19:43 +00:00
Refactor (#6548)
This commit is contained in:
parent
db86049a3e
commit
dc5fcb83e8
2 changed files with 22 additions and 17 deletions
|
@ -13,15 +13,10 @@ setting_up_container
|
|||
network_check
|
||||
update_os
|
||||
|
||||
msg_info "Installing NocoDB"
|
||||
mkdir -p /opt/nocodb
|
||||
cd /opt/nocodb
|
||||
curl -fsSL http://get.nocodb.com/linux-x64 -o nocodb -L
|
||||
chmod +x nocodb
|
||||
msg_ok "Installed NocoDB"
|
||||
fetch_and_deploy_gh_release "nocodb" "nocodb/nocodb" "singlefile" "latest" "/opt/nocodb/" "Noco-linux-x64"
|
||||
|
||||
msg_info "Creating Service"
|
||||
service_path="/etc/systemd/system/nocodb.service"
|
||||
cat <<EOF >/etc/systemd/system/nocodb.service
|
||||
echo "[Unit]
|
||||
Description=nocodb
|
||||
|
||||
|
@ -33,7 +28,8 @@ WorkingDirectory=/opt/nocodb
|
|||
ExecStart=/opt/nocodb/./nocodb
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target" >$service_path
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q --now nocodb
|
||||
msg_ok "Created Service"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue