From 1a0886567c0f147fa79b4b4acc90c9881d9fa740 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 19 May 2026 19:38:05 +0000 Subject: [PATCH] Fix default workshop script paths to panel module location Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/94774b53-bdd2-4583-8cfa-e73c352afe6a Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com> --- Panel/CHANGELOG.md | 3 +++ Panel/modules/addonsmanager/server_content_helpers.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Panel/CHANGELOG.md b/Panel/CHANGELOG.md index 5218a1f9..a735fedc 100644 --- a/Panel/CHANGELOG.md +++ b/Panel/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 2026-05-19 +- **Workshop content script path fix:** Updated addonsmanager default Workshop script paths to the panel module script location under `/var/www/html/GSP/Panel/modules/addonsmanager/scripts/workshop/` so Workshop actions no longer use the incorrect game-home-mixed path on the agent host. + ## 2026-05-18 - **Protocol/image upgrade Phase 1 scaffolding (non-breaking):** Added `protocol/gsp_query.php` normalized query wrapper (LGSL default provider with future-provider placeholders), documented current protocol integration and migration plan in `protocol/PROTOCOL_UPGRADE_REVIEW.md`, and documented image module comparison/unification direction in `modules/SERVER_IMAGE_MODULE_REVIEW.md` without removing LGSL, dsi, or `lgsl_with_img_mod`. - **Cron ↔ Server Content action hook integration:** Added scheduler-callable Server Content hooks in `modules/addonsmanager/server_content_actions.php`, exposed API route `server_content/run_scheduled_action`, and wired cron/user-cron action builders/parsing to support server content scheduled actions (check/install/queue/restart/validate/backup flows) without embedding game-specific install logic in the scheduler. diff --git a/Panel/modules/addonsmanager/server_content_helpers.php b/Panel/modules/addonsmanager/server_content_helpers.php index 6cf12074..935f9c97 100644 --- a/Panel/modules/addonsmanager/server_content_helpers.php +++ b/Panel/modules/addonsmanager/server_content_helpers.php @@ -6,10 +6,10 @@ */ if (!defined('SCM_WORKSHOP_SCRIPT_LINUX_DEFAULT')) { - define('SCM_WORKSHOP_SCRIPT_LINUX_DEFAULT', '/home/gameserver/OGP_User_Files/modules/addonsmanager/scripts/workshop/generic_steam_workshop_linux.sh'); + define('SCM_WORKSHOP_SCRIPT_LINUX_DEFAULT', '/var/www/html/GSP/Panel/modules/addonsmanager/scripts/workshop/generic_steam_workshop_linux.sh'); } if (!defined('SCM_WORKSHOP_SCRIPT_WINDOWS_DEFAULT')) { - define('SCM_WORKSHOP_SCRIPT_WINDOWS_DEFAULT', '/home/gameserver/OGP_User_Files/modules/addonsmanager/scripts/workshop/generic_steam_workshop_windows_cygwin.sh'); + define('SCM_WORKSHOP_SCRIPT_WINDOWS_DEFAULT', '/var/www/html/GSP/Panel/modules/addonsmanager/scripts/workshop/generic_steam_workshop_windows_cygwin.sh'); } function scm_ensure_workshop_schema($db)