Last active 1747421819

updateKUMA.sh Raw
1#!/bin/bash
2
3echo ""
4#echo "Number of new Build"
5#echo "https://github.com/louislam/uptime-kuma/releases"
6#echo -n "> "
7#read newv
8
9newv=$(curl -s https://api.github.com/repos/louislam/uptime-kuma/releases/latest|grep tag_name | cut -d '"' -f 4|sed 's/v//g')
10
11cd uptime-kuma
12
13# Update from git
14git fetch --all
15git checkout $newv --force
16
17# Install dependencies and prebuilt
18npm install --omit=dev
19npm run download-dist
20
21# Restart
22pm2 restart uptime-kuma
23
24