Commit Graph

43 Commits

Author SHA1 Message Date
root 2c079c125c fix: interactive menu no longer crashes on update errors
- Add IN_INTERACTIVE flag to detect interactive mode
- die() now returns to menu instead of exiting in interactive mode
- Update options (1-6) run with 'set +e' to prevent crash on errors
- 'set -e' restored after update completes
- Errors are logged and shown as warnings, menu keeps running
2026-06-25 20:17:58 +02:00
root 2a8ca6dbc7 feat: update branding to 'Emulator/Nitro-V3/Nitro-V3-Render updater by remco epicnabbo.nl'
- New premium ASCII art banner with EMULATOR text
- Banner shows: Emulator / Nitro-V3 / Nitro-V3-Render
- Subtitle: Updater by Remco — epicnabbo.nl
- Mini banner updated with same branding
- Menu header updated
- Help text updated with branding
- Gold color theme for title text
2026-06-25 20:10:39 +02:00
root e8d7ffe656 feat: complete rewrite to v6.0.0 — enterprise-grade management system
NEW FEATURES:
- Premium dual-line ASCII art banner (NITRO + V3)
- Git Log Viewer (option 16) — last 20 commits per repo
- Branch Compare (option 17) — diff between any 2 branches
- Update History (option 18) — backup/changelog viewer
- Cron Scheduler (option 19) — auto-update setup (daily/weekly/custom)
- Box key-value display (box_kv) for clean data presentation
- box_sep for section dividers
- Gold/orange/purple/teal color themes
- Active emoji set expanded (globe, console, server, database, diagnostics)

IMPROVEMENTS:
- Menu restructured: UPDATE / TOOLS / ADVANCED sections
- 19 interactive options total
- Health check with percentage scoring
- Git commit history with date, hash, message columns
- Branch comparison shows ahead/behind counts + diff stat
- Cron setup with test-run option
- Cleaner code organization — removed duplication
- All update functions extracted to standalone functions
- Box drawing with proper UTF-8 padding

FIXES:
- Branch detection properly filters HEAD and arrow entries
- Default command is now interactive (shows menu)
- NITRO_SITE_URL derived from APP_URL before URL calculation
2026-06-25 20:04:34 +02:00
root 90e674a8ca fix: make interactive menu the default when running script
Running ./update-Nitrov3.sh without arguments now opens the TUI
control panel instead of immediately running a full update.
Use 'update' subcommand or --only= for direct CLI updates.
2026-06-25 19:51:12 +02:00
root 60162d7882 fix: branch detection now correctly filters HEAD and arrow entries
- grep -v '\->' removes the 'origin/HEAD -> origin/main' line
- grep -v '^HEAD$' removes stray HEAD entries
- sed trims whitespace and strips 'origin/' prefix
- sort -u deduplicates across repos
- Result: only clean branch names like 'main', 'dev', 'Dev'
2026-06-25 19:46:59 +02:00
root e42354411a feat: update wizard with branch selection and mode summary
- Add pick_branch_and_update() wizard for all update options
- Auto-detect available branches from all git repos
- Show branch list with (current) marker for active branch
- Show update summary (branch, mode, site) before confirmation
- Add detect_available_branches() helper to avoid duplication
- Restructure menu: UPDATE / TOOLS categories with labels
- Option 1: Quick Update (uses current branch, no prompts)
- Options 2-6: Full/Selective update with branch picker
- Branch switcher shows all detected branches from repos
- Menu header shows current time, branch, and site URL
2026-06-25 19:40:40 +02:00
root ec81179376 fix: flexible branch handling - works with any branch name
- Add detect_branch() function with smart fallback per repo
- Auto-detect branches: tries exact match, capitalization variants,
  development/Development, main/master, remote branches
- Never crashes on missing branch - warns and skips instead
- Remove hardcoded branch validation (now accepts any branch name)
- Add branch switcher to interactive menu (option 6)
- Shows current branch and site URL in menu header
- git_update() now uses git pull origin instead of generic pull
- Update help text for --branch option
2026-06-25 19:34:02 +02:00
root dddfbcdf47 feat: upgrade update-Nitrov3.sh to v5.0.0 enterprise management system
- Complete rewrite from 584 to 1902 lines
- Interactive TUI control panel with 13 menu options
- CLI subcommands: update, interactive, status, health, backup, restore,
  backups, services, database, config, logs, clean, help, version
- Selective updates with --only=emulator|client|renderer|configs
- Animated spinners and progress bars during operations
- System diagnostics: CPU, memory, disk, Redis, Nginx, SSL cert check
- Database manager: info, tables, sizes, optimize, check, custom queries
- Backup management: create, restore with interactive selection, list view
- Service manager: start/stop/restart for emulator, nginx, PM2
- System status dashboard with server info and resource usage
- Health check with 20+ checks and scoring system
- Cache cleanup: Yarn, Laravel, Redis, logs, backups, temp files
- Enhanced webhook notifications with color support
- CLI flags: --dry-run, --force, --verbose, --quiet, --branch, --url
- Fix: derive NITRO_SITE_URL from APP_URL before URL calculation
- Full UTF-8 and ASCII fallback support
2026-06-25 19:27:01 +02:00
root 391458ce49 Improve branch checkout fallback in update-Nitrov3.sh
Add fallback logic to try capitalized branch name if the
specified branch is not found, with a clear error message
if neither exists.
2026-06-24 15:10:02 +02:00
root 37861cf8be feat: enterprise-grade update script with rollback, logging, health checks, notifications, dry-run 2026-06-24 13:13:13 +02:00
root 2aaff12c60 refactor: extract git_update function, add APP_URL fallback, validate dirs upfront 2026-06-24 12:55:32 +02:00
root 267a3c0fe0 fix: use ws. subdomain for websocket URL 2026-06-24 12:47:41 +02:00
root baa2c44110 feat: add interactive prompt for main/dev branch choice 2026-06-24 12:42:27 +02:00
root e4b7eec79f fix: move interactive prompt before unbuffer exec so read works 2026-06-24 12:39:50 +02:00
root 3ed476d374 feat: make site URL and branch configurable in update script 2026-06-24 12:33:34 +02:00
root 4aa6f01779 fix: suppress MariaDB SSL warning for passwordless login 2026-06-16 20:16:56 +02:00
root 272dde72bc fix: auto-restart via PM2 fallback when systemd not found 2026-06-16 20:13:45 +02:00
root 53e69a656b refactor: add update tracking, dir checks, and safer cleanup 2026-06-16 20:09:56 +02:00
root ec153e2eda refactor: improvements to update script 2026-06-16 20:01:35 +02:00
root ae1bbba6e2 fix: checkout main before git pull in update script 2026-06-16 19:49:05 +02:00
root 3b3551d48c Fix permissions script to chown entire project directory and use chmod -R 2026-06-10 12:15:06 +02:00
root 392bb96ea0 Fix gamedata alias, add ads.txt, update script for radio/custom-themes/ads 2026-06-07 20:24:30 +02:00
root ff04270b41 fix: protect furni.asset.icon.url from being overwritten on update 2026-06-07 19:00:50 +02:00
root 482996429d fix: preserve catalog icon URLs after Nitro-V3 update
- Add Fase 3 to sync merged configs to dist/configuration/
- Add Fase 4 to force critical URLs (image.library.url, hof.furni.url, etc.)
- Add NITRO_* env vars with current server defaults
- Prevent git pull from overwriting icon URL config with example values
2026-06-07 18:37:44 +02:00
root 4a4110a478 chore: update manifest and Nitro update script 2026-06-07 17:10:26 +02:00
root 2f363eb106 Clean up old .jar files after emulator update keeping only the latest 2026-06-07 16:51:22 +02:00
root ef559ce64b Auto-stash before git pull and sync .example configs to live files
- All git pull commands now auto-stash local changes first
- .example configs are now merged with live files in Nitro's
  public/configuration directory to keep them 100% complete
- Removed unused getTargetName function from merge-config.cjs
2026-06-07 16:36:15 +02:00
root ccbd200464 feat: auto-merge all Nitro config .example files with missing key detection 2026-06-06 16:38:48 +02:00
root 834908df9f fix: always sync Gamedata configs from latest .example files 2026-06-06 16:30:24 +02:00
root 434f58d5aa fix: use systemctl cat instead of list-units for reliable service detection 2026-06-06 16:24:44 +02:00
root ea2160132a Nitro V3 update: CLI-only (Linux), settings via .env
- Moved Nitro V3 update from web UI (Commandocentrum) to CLI-only
- Removed configure paths form and runUpdateNitrov3() from admin panel
- update-Nitrov3.sh now loads .env automatically from its directory
- Added all NITRO_* env vars to .env.example.linux and .env
- Removed configurable paths from database (replaced by .env)
- Updated README and CHANGELOG
2026-06-06 14:11:50 +02:00
root 2ac1264b93 Fix: SQL import exclude backup dir, replace process substitution with pipe, error handling in loop 2026-06-05 23:20:12 +02:00
root 0f0de43da5 Fix: mariadb-dump || echo instead of hard fail on missing tables 2026-06-05 23:17:03 +02:00
root 1ee60405ce Cleanup: clean_node_modules helper, yarn cache clean || true, remove duplicate blocks 2026-06-05 23:13:15 +02:00
root 78704190bc Fix: rm -rf node_modules fallback to sudo on permission denied + chown safety 2026-06-05 23:09:01 +02:00
root f109b1f764 Fix: check if jar exists after mvn package, clear error message 2026-06-05 23:03:47 +02:00
root af2f76d9db Fix: mariadb-dump --skip-lock-tables --force for missing tables 2026-06-05 23:01:59 +02:00
root 6f11cae3ca Fix: unbound variable _UNBUFFERED () 2026-06-05 23:00:45 +02:00
root 16b2f5bbb7 Fix: unbuffer for realtime output, set -euo pipefail + trap for 0 errors guarantee 2026-06-05 22:59:24 +02:00
root 6e437be6d1 Improve update-Nitrov3.sh: realtime output, strict yarn install, perms fix, extra validation 2026-06-05 22:56:20 +02:00
root 4b6872e5e0 Low priority fixes: debug comments, Fortify cleanup, badge cost setting, profile query merge, User model fixes, VPN constructor cleanup, PayPal POST, PII removal, Dutch→English translations, duplicate rank check, CHANGELOG 2026-06-04 19:57:01 +02:00
root f76f30e88f Nitro V3 Update: configureerbare paths via Commandocentrum + sudoers fix 2026-06-04 18:56:08 +02:00
root 1f04979ffe Remove all auto-update functionality (commands, services, widgets, blades, translations) 2026-06-03 22:54:39 +02:00