From 8cf64cddd895bbaeb69ca487fe97065450e01b4e Mon Sep 17 00:00:00 2001 From: Brian Miller Date: Fri, 7 Jun 2024 15:00:26 -0700 Subject: [PATCH] added manual thunderstore sync button --- container/nginx/www/admin/index.php | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/container/nginx/www/admin/index.php b/container/nginx/www/admin/index.php index e65b917e..03dc6500 100644 --- a/container/nginx/www/admin/index.php +++ b/container/nginx/www/admin/index.php @@ -29,6 +29,15 @@ header('Location: /'); } +if (!empty($_GET['manual_ts_sync_start'])) { + $manual_ts_sync_start = $_GET['manual_ts_sync_start']; + if($manual_ts_sync_start == "go") + { + exec("/opt/stateless/engine/tools/tsSyncLocalParseMultithreaded.sh >> /opt/stateful/logs/tsSync.log &"); + header('Location: /'); + } +} + # http(s) detector if($_SERVER['HTTP_X_FORWARDED_PROTO'] == "https") { @@ -198,10 +207,10 @@ function autoStart_$world(cb)
- +
- + @@ -209,13 +218,14 @@ function autoStart_$world(cb) - + +
CommandsCommands
- +
@@ -286,7 +296,7 @@ function autoStart_$world(cb)
Status - +
Logs