Various fixes and improvements

This commit is contained in:
Dmitri Popov
2019-02-11 20:37:39 +01:00
parent 93e7c890d5
commit 9c458c0e68
5 changed files with 33 additions and 47 deletions

View File

@@ -47,14 +47,14 @@
<?php
if (isset($_POST['cardbackup']))
{
shell_exec('sudo ./card-backup.sh');
shell_exec('sudo ./card-backup.sh 2>&1 & echo $!');
}
if (isset($_POST['camerabackup']))
{
shell_exec('sudo ./camera-backup.sh');
shell_exec('sudo ./camera-backup.sh 2>&1 & echo $!');
}
if (isset($_POST['shutdown']))
{
shell_exec('sudo shutdown -h now');
shell_exec('sudo shutdown -h now 2>&1 & echo $!');
}
?>