#!/usr/bin/env bash # Copyright (c) 2021-2025 community-scripts ORG # Author: michelroegl-brunner # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" color verb_ip6 catch_errors setting_up_container network_check update_os msg_info "Installing Dependencies" $STD apt-get update $STD apt-get install -y \ build-essential \ sshpass \ expect msg_ok "Dependencies installed." NODE_VERSION=22 setup_nodejs fetch_and_deploy_gh_release "ProxmoxVE-Local" "community-scripts/ProxmoxVE-Local" msg_info "Installing PVE Scripts local" $STD npm install cp .env.example .env mkdir -p data chmod 755 data $STD npm run build msg_ok "Installed PVE Scripts local" SERVICE_NAME="pvescriptslocal" SERVICE_FILE="/etc/systemd/system/${SERVICE_NAME}.service" msg_info "Creating Service" cat > "$SERVICE_FILE" <