Files
ProxmoxVE/install/myip-install.sh
CanbiZ (MickLesk) ef71bcbbf1 fix(node): align Node.js versions with upstream for 5 scripts
Update scripts where upstream requires a newer Node.js version:
- iobroker: 22 → 24 (upstream .nvmrc)
- kima-hub: 20 → 22 (upstream Dockerfile)
- myip: 22 → 24 (upstream Dockerfile)
- outline: 22 → 24 (upstream Dockerfile)
- shelfmark: 22 → 24 (upstream Dockerfile)

Skipped 15 scripts where our version is already newer than upstream.

Ref: community-scripts/ProxmoxVE#13870
2026-04-20 10:46:18 +02:00

50 lines
1011 B
Bash

#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: Slaviša Arežina (tremor021)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://ipcheck.ing/ | Github: https://github.com/jason5ng32/MyIP
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
NODE_VERSION="24" setup_nodejs
fetch_and_deploy_gh_release "myip" "jason5ng32/MyIP" "tarball"
msg_info "Configuring MyIP"
cd /opt/myip
cp .env.example .env
$STD npm install
$STD npm run build
msg_ok "Configured MyIP"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/myip.service
[Unit]
Description=MyIP Service
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/opt/myip
ExecStart=/usr/bin/npm start
EnvironmentFile=/opt/myip/.env
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target
EOF
systemctl enable -q --now myip
msg_ok "Service created"
motd_ssh
customize
cleanup_lxc