Skip to content

Commit

Permalink
Add unraid version to debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
Commifreak committed Mar 28, 2023
1 parent 8f169b2 commit d80d5e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scripts/backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());

/**
Expand Down
3 changes: 3 additions & 0 deletions src/scripts/restore.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());

/**
Expand Down

0 comments on commit d80d5e4

Please sign in to comment.