Update uptime-kuma-install.sh

This commit is contained in:
tschettervictor
2024-09-13 10:35:48 -06:00
committed by GitHub
parent 003b79b77f
commit c2af6cb0ec

View File

@@ -27,7 +27,7 @@ npm install npm -g
cd /usr/local/ && git clone https://github.com/louislam/uptime-kuma.git
cd /usr/local/uptime-kuma && npm run setup
sed -i '' "s|console.log(\"Welcome to Uptime Kuma\");|process.chdir('/usr/local/uptime-kuma');\n&|" /usr/local/uptime-kuma/server/server.js
fetch -o /usr/local/etc/rc.d/ https://raw.githubusercontent.com/tschettervictor/bsd-apps/main/uptimekuma/usr/local/etc/rc.d/uptimekuma
fetch -o /usr/local/etc/rc.d/ https://raw.githubusercontent.com/tschettervictor/bsd-apps/main/uptime-kuma/usr/local/etc/rc.d/uptimekuma
if [ "${REINSTALL}" != "1" ]; then
cp -R /usr/local/uptime-kuma/data/* /mnt/data/
fi