mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-02-03 20:03:25 +01:00
add: uptime-kuma: chromium (#11081)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user