using unxz now for decompressing archive, for those stuck on tar version 1.30 and below.

This commit is contained in:
Marcel Naeve 2024-11-26 19:14:32 +01:00
parent 2b1271ec6e
commit 07525cd06c
Signed by: manae
GPG Key ID: CBB7B21A2EBDC6A9
1 changed files with 3 additions and 1 deletions

View File

@ -163,7 +163,9 @@ if($latest_version->isNewer($current_version)) { // neue Version verfügbar?
echo PHP_EOL; echo PHP_EOL;
$cli->sendTitle( "STARTE DAS ENTPACKEN DER NEUEN SERVER FILES", 1 ); $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) { if($return === 0) {