diff --git a/CHANGELOG.md b/CHANGELOG.md index cab75a81..e7e9545c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2026-05-01 (latest) +- Changed panel update backup location from `/var/backups/gsp-panel` to `/backups/` so all backups are self-contained inside the panel directory and require no external path or elevated permissions. +- Removed stale "Dev Testing" placeholder heading from the panel login page (`index.php`). + ## 2026-05-01 - Added safe panel update system to `home.php?m=administration&p=main`: - Numbered Releases: fetches GitHub releases via API, shows newest-first dropdown, updates to selected tag. diff --git a/index.php b/index.php index 5b72db79..e27aacd7 100644 --- a/index.php +++ b/index.php @@ -485,8 +485,7 @@ function ogpHome()
-

Dev Testing

-this is dev +

Level up your gaming

%bottom% diff --git a/modules/administration/panel_update.php b/modules/administration/panel_update.php index f648f8ff..9705932b 100644 --- a/modules/administration/panel_update.php +++ b/modules/administration/panel_update.php @@ -17,7 +17,7 @@ // Panel root is two directories up from this file (modules/administration/panel_update.php) define('GSP_PANEL_DIR', realpath(dirname(__FILE__) . '/../../')); -define('GSP_BACKUP_BASE', '/var/backups/gsp-panel'); +define('GSP_BACKUP_BASE', GSP_PANEL_DIR . '/backups'); define('GSP_UPDATE_LOG', GSP_PANEL_DIR . '/logs/panel_updates.log'); define('GSP_VERSION_FILE', GSP_PANEL_DIR . '/includes/panel_version.php'); define('GSP_VERSION_JSON', GSP_PANEL_DIR . '/version.json'); @@ -283,8 +283,7 @@ function gsp_create_full_backup($update_type, $update_target) return [ 'success' => false, 'error' => 'Cannot create backup directory ' . GSP_BACKUP_BASE - . '. Run: sudo mkdir -p ' . GSP_BACKUP_BASE - . ' && sudo chown www-data:www-data ' . GSP_BACKUP_BASE, + . '. Ensure the panel directory is writable by the web server.', ]; }