#!/bin/ash #allow node to use port privileged setcap 'cap_net_bind_service=+ep' /usr/bin/node #Run folowing commands as 'node' user sudo -u node ash << EOF #Install Uptime-Kuma git clone https://github.com/louislam/uptime-kuma.git /opt/node/Uptime-Kuma npm --prefix /opt/node/Uptime-Kuma run setup #Save PM2 statup config pm2 start server/server.js --name Uptime-Kuma --cwd /opt/node/Uptime-Kuma -- --port=80 pm2 install pm2-logrotate pm2 save pm2 kill EOF #Adding update scipts mv /opt/Setup/Scripts/Update-UptimeKuma.sh /opt/Update-UptimeKuma.sh #Cleanup rm -rf /home/node/.npm/_cacache rm -rf /home/node/.cache