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()); /**