From d80d5e411f33bea98ef9e9902ded43de4382a146 Mon Sep 17 00:00:00 2001 From: Robin Kluth Date: Tue, 28 Mar 2023 20:07:53 +0200 Subject: [PATCH] Add unraid version to debug log --- src/scripts/backup.php | 3 +++ src/scripts/restore.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/scripts/backup.php b/src/scripts/backup.php index e479d4a..a7af7a3 100644 --- a/src/scripts/backup.php +++ b/src/scripts/backup.php @@ -31,6 +31,9 @@ ABHelper::backupLog("👋 WELCOME TO APPDATA.BACKUP!! :D"); +$unraidVersion = parse_ini_file('/etc/unraid-version'); +ABHelper::backupLog("unraid-version: " . print_r($unraidVersion, true), ABHelper::LOGLEVEL_DEBUG); + file_put_contents(ABSettings::$tempFolder . '/' . ABSettings::$stateFileScriptRunning, getmypid()); /** diff --git a/src/scripts/restore.php b/src/scripts/restore.php index 420e818..ff1bca4 100644 --- a/src/scripts/restore.php +++ b/src/scripts/restore.php @@ -20,6 +20,9 @@ ABHelper::backupLog("👋 WELCOME TO APPDATA.BACKUP (in restore mode)!! :D"); +$unraidVersion = parse_ini_file('/etc/unraid-version'); +ABHelper::backupLog("unraid-version: " . print_r($unraidVersion, true), ABHelper::LOGLEVEL_DEBUG); + file_put_contents(ABSettings::$tempFolder . '/' . ABSettings::$stateFileScriptRunning, getmypid()); /**