mirror of
https://github.com/myronblair/novacpx
synced 2026-06-30 17:50:41 -05:00
dbc5a01de9
#4: Postfix virtual mailbox config (virtual_mailbox_domains/maps, vmail user, maildir at /var/mail/vhosts/%d/%n). Dovecot SQL backend pointed at novacpx.email_accounts with SHA512-CRYPT passdb and per-domain Maildir userdb. #5: BIND9 confirmed working — dig @localhost resolves testdomain1.com correctly. #6: Certbot 2.9.0 confirmed installed; domains.document_root wired; infrastructure ready for live domain issuance (testdomain1.com not publicly resolvable so dry-run expected to fail). #7: Fixed all broken user-panel API queries — missing tables (databases, ftp_accounts, ssl_certs, cron_jobs, php_configs, notifications) created; `databases` reserved-word backtick-quoted across DatabaseManager+endpoints; domains.php is_primary→type=main, doc_root→document_root column fixes; DNSManager::createZone call signature fixed; stats/account auto-resolves account_id for user role. #8: assert_account_access() helper added to api/index.php; reseller ownership check wired into email, ftp, databases, domains, dns, ssl endpoints. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
33 lines
1.0 KiB
Bash
Executable File
33 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# nova-ssh.sh — SSH into the NovaCPX VM via double-hop through PVE1
|
|
# Usage: bash nova-ssh.sh [command] (run command on VM)
|
|
# bash nova-ssh.sh (interactive shell on VM)
|
|
# bash nova-ssh.sh --pve1 [command] (run on PVE1 instead)
|
|
#
|
|
# Hop path: local → PVE1 (10.48.200.90 via orbisne.fortiddns.com) → VM (10.48.200.110)
|
|
|
|
PVE1_HOST="orbisne.fortiddns.com"
|
|
PVE1_PASS="Joker1974!!!"
|
|
VM_IP="10.48.200.110"
|
|
VM_PASS="Joker1974!!!"
|
|
SSH_OPTS="-o StrictHostKeyChecking=no -o ConnectTimeout=10"
|
|
|
|
if [[ "${1:-}" == "--pve1" ]]; then
|
|
shift
|
|
if [[ $# -eq 0 ]]; then
|
|
sshpass -p "$PVE1_PASS" ssh $SSH_OPTS root@$PVE1_HOST
|
|
else
|
|
sshpass -p "$PVE1_PASS" ssh $SSH_OPTS root@$PVE1_HOST "$*"
|
|
fi
|
|
else
|
|
CMD="$*"
|
|
if [[ -z "$CMD" ]]; then
|
|
# Interactive shell
|
|
sshpass -p "$PVE1_PASS" ssh $SSH_OPTS root@$PVE1_HOST \
|
|
"sshpass -p '$VM_PASS' ssh $SSH_OPTS root@$VM_IP"
|
|
else
|
|
sshpass -p "$PVE1_PASS" ssh $SSH_OPTS root@$PVE1_HOST \
|
|
"sshpass -p '$VM_PASS' ssh $SSH_OPTS root@$VM_IP '$CMD'"
|
|
fi
|
|
fi
|