From 07525cd06c83a2a927ec6431c104098750d36cb6 Mon Sep 17 00:00:00 2001 From: Marcel Naeve Date: Tue, 26 Nov 2024 19:14:32 +0100 Subject: [PATCH] using unxz now for decompressing archive, for those stuck on tar version 1.30 and below. --- factorio_update.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/factorio_update.php b/factorio_update.php index 0bc6cab..0017237 100644 --- a/factorio_update.php +++ b/factorio_update.php @@ -163,7 +163,9 @@ if($latest_version->isNewer($current_version)) { // neue Version verfügbar? echo PHP_EOL; $cli->sendTitle( "STARTE DAS ENTPACKEN DER NEUEN SERVER FILES", 1 ); - exec("tar -xvf \"$download_output\" > /dev/null", $output, $return); // Entpacken + $unxz_download_output = preg_replace("/.tar.xz$/", ".tar", $download_output); + + exec("unxz -vfd \"$download_output\" && tar -xvf \"$unxz_download_output\" > /dev/null", $output, $return); // Entpacken if($return === 0) {