Update uptime-kuma-install.sh

This commit is contained in:
tschettervictor
2025-01-27 14:45:32 -07:00
committed by GitHub
parent 39cce1f903
commit b8c461e957

View File

@@ -29,7 +29,7 @@ cd /usr/local/ && git clone https://github.com/louislam/uptime-kuma.git
if [ "{APP_VERSION}" = "latest" ]; then
cd /usr/local/uptime-kuma && npm run setup
else
git checkout "${APP_VERSION}" && npm ci --production && npm run download-dist
cd /usr/local/uptime-kuma && git checkout "${APP_VERSION}" && npm ci --production && npm run download-dist
fi
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/uptime-kuma/includes/uptimekuma