mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 01:26:11 -08:00
maintenance task DB
This commit is contained in:
@@ -37,6 +37,10 @@
|
||||
id="btnDeleteMAC" onclick="askDeleteDevicesWithEmptyMACs()"> Delete Devices with empty MACs </button>
|
||||
</div>
|
||||
|
||||
<div class="pull-right">
|
||||
<button type="button" class="btn btn-default pa-btn pa-btn-delete" style="margin-left:0px;"
|
||||
id="btnDeleteMAC" onclick="askDeleteAllDevices()"> Delete All Devices </button>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<button type="button" class="btn btn-default pa-btn pa-btn-create" style="margin-left:0px;"
|
||||
id="btnDelete" onclick="askRunScan1min()"> Run 1 min scan now</button>
|
||||
|
||||
@@ -259,11 +259,13 @@ function createBackupDB() {
|
||||
// echo "Error copying DB. SSH into instance and copy manually.";
|
||||
// }
|
||||
|
||||
$command = escapeshellcmd('/home/pi/pialert/back/maintenance.py backup_DB');
|
||||
$output = shell_exec($command);
|
||||
$mystring = system('python /home/pi/pialert/back/maintenance.py backup_DB', $retval);
|
||||
// $command = escapeshellcmd('/home/pi/pialert/back/maintenance.py backup_DB');
|
||||
// $output = shell_exec($command);
|
||||
|
||||
|
||||
echo $output;
|
||||
//echo $output;
|
||||
echo $retval;
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user