add: uptime-kuma: chromium (#11081)

This commit is contained in:
Tobias
2026-01-23 13:08:18 +01:00
committed by GitHub
parent 154010ab6b
commit b73acc998f
2 changed files with 13 additions and 0 deletions

View File

@@ -30,6 +30,14 @@ function update_script() {
NODE_VERSION="22" setup_nodejs
if ! dpkg -s chromium >/dev/null 2>&1; then
msg_info "Installing Chromium"
$STD apt update
$STD apt install -y chromium
ln -s /usr/bin/chromium /opt/uptime-kuma/chromium
msg_ok "Installed Chromium"
fi
if check_for_gh_release "uptime-kuma" "louislam/uptime-kuma"; then
msg_info "Stopping Service"
systemctl stop uptime-kuma

View File

@@ -13,6 +13,10 @@ setting_up_container
network_check
update_os
msg_info "Installing dependencies"
$STD apt install -y chromium
msg_ok "Installed dependencies"
NODE_VERSION="22" setup_nodejs
fetch_and_deploy_gh_release "uptime-kuma" "louislam/uptime-kuma" "tarball"
@@ -23,6 +27,7 @@ $STD npm run download-dist
msg_ok "Installed Uptime Kuma"
msg_info "Creating Service"
ln -s /usr/bin/chromium /opt/uptime-kuma/chromium
cat <<EOF >/etc/systemd/system/uptime-kuma.service
[Unit]
Description=uptime-kuma