Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands - CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround - CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check - NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere - MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates - LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference Co-authored-by: Cursor <cursoragent@cursor.com>
92 lines
3.0 KiB
Bash
Executable File
92 lines
3.0 KiB
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
# Load IP configuration
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
source "${PROJECT_ROOT}/config/ip-addresses.conf" 2>/dev/null || true
|
|
|
|
|
|
# Automated NPMplus installation with pre-configured settings
|
|
# This script installs NPMplus non-interactively
|
|
|
|
set -e
|
|
|
|
PROXMOX_HOST="${1:-192.168.11.11}"
|
|
TZ="${2:-America/New_York}"
|
|
ACME_EMAIL="${3:-nsatoshi2007@hotmail.com}"
|
|
|
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
echo "🚀 Automated NPMplus Installation"
|
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
echo ""
|
|
echo "Proxmox Host: $PROXMOX_HOST"
|
|
echo "Timezone: $TZ"
|
|
echo "ACME Email: $ACME_EMAIL"
|
|
echo ""
|
|
|
|
# Download and modify the installation script to be non-interactive
|
|
echo "📦 Downloading NPMplus installation script..."
|
|
INSTALL_SCRIPT="/tmp/npmplus-install-auto.sh"
|
|
|
|
# Create automated install script
|
|
cat > "$INSTALL_SCRIPT" << 'INSTALL_EOF'
|
|
#!/bin/bash
|
|
# Automated NPMplus installation
|
|
|
|
source /dev/stdin <<<"$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)"
|
|
|
|
APP="NPMplus"
|
|
var_tags="${var_tags:-proxy;nginx}"
|
|
var_cpu="${var_cpu:-1}"
|
|
var_ram="${var_ram:-512}"
|
|
var_disk="${var_disk:-3}"
|
|
var_os="${var_os:-alpine}"
|
|
var_version="${var_version:-3.22}"
|
|
var_unprivileged="${var_unprivileged:-1}"
|
|
|
|
# Pre-set timezone and email
|
|
export TZ_INPUT="${TZ_INPUT:-America/New_York}"
|
|
export ACME_EMAIL_INPUT="${ACME_EMAIL_INPUT:-nsatoshi2007@hotmail.com}"
|
|
|
|
header_info "$APP"
|
|
variables
|
|
color
|
|
catch_errors
|
|
|
|
start
|
|
build_container
|
|
description
|
|
|
|
msg_ok "Completed Successfully!\n"
|
|
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
|
|
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
|
|
echo -e "${TAB}${GATEWAY}${BGN}https://${IP}:81${CL}"
|
|
INSTALL_EOF
|
|
|
|
# The actual installation needs to be run on the Proxmox host
|
|
# We'll create a wrapper that handles the interactive parts
|
|
echo "📋 Creating installation wrapper..."
|
|
|
|
# Copy to Proxmox host and run
|
|
scp "$INSTALL_SCRIPT" root@"$PROXMOX_HOST":/tmp/npmplus-auto.sh || {
|
|
echo "❌ Failed to copy script to Proxmox host"
|
|
echo "💡 Please run the installation manually:"
|
|
echo " ssh root@$PROXMOX_HOST"
|
|
echo " bash -c \"\$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/npmplus.sh)\""
|
|
exit 1
|
|
}
|
|
|
|
echo "✅ Installation script ready"
|
|
echo ""
|
|
echo "⚠️ Note: The Proxmox helper script requires interactive input."
|
|
echo " Please run the installation manually on the Proxmox host:"
|
|
echo ""
|
|
echo " ssh root@$PROXMOX_HOST"
|
|
echo " bash -c \"\$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/npmplus.sh)\""
|
|
echo ""
|
|
echo " When prompted:"
|
|
echo " - Timezone: $TZ"
|
|
echo " - ACME Email: $ACME_EMAIL"
|
|
echo ""
|