Add DB Backup to Maintenance fix

relative paths
This commit is contained in:
leiweibau
2022-06-22 09:14:42 +02:00
parent 51f975ffe9
commit 21e036dfae
2 changed files with 6 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ $execstring = 'ps -f -u pi | grep "nmap" 2>&1';
$pia_nmapscans = "";
exec($execstring, $pia_nmapscans);
$Pia_Archive_Path = "/home/pi/pialert/db/";
$Pia_Archive_Path = str_replace('front', 'db', getcwd()).'/';
$Pia_Archive_count = 0;
$files = glob($Pia_Archive_Path . "*.zip");
if ($files){