Add status

This commit is contained in:
Dmitri Popov
2019-02-24 12:46:46 +01:00
parent 5925c68a6a
commit ca5d328a29

View File

@@ -58,10 +58,12 @@
if (isset($_POST['cardbackup'])) if (isset($_POST['cardbackup']))
{ {
shell_exec('sudo ./card-backup.sh > /dev/null 2>&1 & echo $!'); shell_exec('sudo ./card-backup.sh > /dev/null 2>&1 & echo $!');
echo "<p>OK</p>";
} }
if (isset($_POST['camerabackup'])) if (isset($_POST['camerabackup']))
{ {
shell_exec('sudo ./camera-backup.sh > /dev/null 2>&1 & echo $!'); shell_exec('sudo ./camera-backup.sh > /dev/null 2>&1 & echo $!');
echo "<p>OK</p>";
} }
if (isset($_POST['minidlna'])) if (isset($_POST['minidlna']))
{ {
@@ -104,6 +106,7 @@
if (isset($_POST['shutdown'])) if (isset($_POST['shutdown']))
{ {
shell_exec('sudo shutdown -h now > /dev/null 2>&1 & echo $!'); shell_exec('sudo shutdown -h now > /dev/null 2>&1 & echo $!');
echo "<p>OK</p>";
} }
?> ?>
Read the <a href="https://gumroad.com/l/linux-photography">Linux Photography</a> book Read the <a href="https://gumroad.com/l/linux-photography">Linux Photography</a> book