Compare commits

..

No commits in common. "1e62c159f1bd4f5117d815ba60f84c812666986a" and "abd627f93b1c0e24b54d06e899e01e5793ce7910" have entirely different histories.

2 changed files with 21 additions and 11 deletions

View File

@ -23,7 +23,7 @@ var_disk="4"
var_cpu="1"
var_ram="1024"
var_os="debian"
var_version="12"
var_version="11"
variables
color
catch_errors
@ -54,12 +54,10 @@ 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
rm nocodb
curl -s http://get.nocodb.com/linux-x64 -o nocodb -L
chmod +x nocodb
systemctl start nocodb.service
npm uninstall -s --save nocodb &>/dev/null
npm install -s --save nocodb &>/dev/null
systemctl restart nocodb.service
msg_ok "Updated Successfully"
exit
}

View File

@ -17,13 +17,25 @@ msg_info "Installing Dependencies"
$STD apt-get install -y curl
$STD apt-get install -y sudo
$STD apt-get install -y mc
$STD apt-get install -y git
$STD apt-get install -y make
$STD apt-get install -y g++
$STD apt-get install -y gcc
msg_ok "Installed Dependencies"
msg_info "Installing Node.js"
$STD bash <(curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh)
. ~/.bashrc
$STD nvm install 16.20.1
ln -sf /root/.nvm/versions/node/v16.20.1/bin/node /usr/bin/node
ln -sf /root/.nvm/versions/node/v16.20.1/bin/npm /usr/bin/npm
msg_ok "Installed Node.js"
msg_info "Installing NocoDB"
mkdir -p /opt/nocodb
$STD git clone https://github.com/nocodb/nocodb-seed
mv nocodb-seed /opt/nocodb
cd /opt/nocodb
curl -s http://get.nocodb.com/linux-x64 -o nocodb -L
chmod +x nocodb
$STD npm install
msg_ok "Installed NocoDB"
msg_info "Creating Service"
@ -36,11 +48,11 @@ Type=simple
Restart=always
User=root
WorkingDirectory=/opt/nocodb
ExecStart=/opt/nocodb/./nocodb
ExecStart=/usr/bin/npm start
[Install]
WantedBy=multi-user.target" >$service_path
systemctl enable -q --now nocodb.service &>/dev/null
systemctl enable --now nocodb.service &>/dev/null
msg_ok "Created Service"
motd_ssh