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>
52 lines
1.4 KiB
Bash
Executable File
52 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# nova-github.sh — Quick GitHub push for NovaCPX repo
|
|
# Usage: bash nova-github.sh "commit message" (add all, commit, push)
|
|
# bash nova-github.sh --status (git status + diff --stat)
|
|
# bash nova-github.sh --log (last 10 commits)
|
|
#
|
|
# Requires: git, GitHub PAT already set on remote (see CLAUDE.md)
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
REPO_ROOT="$(dirname "$SCRIPT_DIR")"
|
|
|
|
GREEN='\033[0;32m'; RED='\033[0;31m'; YELLOW='\033[1;33m'; NC='\033[0m'
|
|
|
|
cd "$REPO_ROOT" || { echo "Cannot cd to repo root: $REPO_ROOT"; exit 1; }
|
|
|
|
case "${1:-}" in
|
|
--status)
|
|
git status
|
|
echo ""
|
|
git diff --stat
|
|
;;
|
|
--log)
|
|
git log --oneline -10
|
|
;;
|
|
"")
|
|
echo "Usage: $0 \"commit message\""
|
|
echo " $0 --status"
|
|
echo " $0 --log"
|
|
exit 1
|
|
;;
|
|
*)
|
|
MSG="$*"
|
|
# PHP syntax check before commit
|
|
echo "Running PHP syntax check..."
|
|
if ! bash "$SCRIPT_DIR/nova-phpcheck.sh" > /dev/null 2>&1; then
|
|
echo -e "${RED}[✗]${NC} PHP syntax errors found. Run: bash tools/nova-phpcheck.sh --fix"
|
|
exit 1
|
|
fi
|
|
echo -e "${GREEN}[✓]${NC} PHP OK"
|
|
|
|
git add -A
|
|
git status --short
|
|
echo ""
|
|
git commit -m "$MSG
|
|
|
|
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>"
|
|
git push origin main
|
|
echo ""
|
|
echo -e "${GREEN}[✓]${NC} Pushed. Auto-deploy will trigger within ~1 min."
|
|
;;
|
|
esac
|