From 6edfa362352a089d5c78294cfc6b666711d4b3df Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 1 May 2026 19:02:36 +0000 Subject: [PATCH] fix: store backups inside panel directory; revert dev testing heading Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/33417aee-aecb-44de-9008-5b1008b4e3dc Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com> --- CHANGELOG.md | 4 ++++ index.php | 3 +-- modules/administration/panel_update.php | 5 ++--- 3 files changed, 7 insertions(+), 5 deletions(-) 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.', ]; }