summaryrefslogtreecommitdiff
path: root/intern.gospeladlershof.de/code/deploy.php
diff options
context:
space:
mode:
Diffstat (limited to 'intern.gospeladlershof.de/code/deploy.php')
-rw-r--r--intern.gospeladlershof.de/code/deploy.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/intern.gospeladlershof.de/code/deploy.php b/intern.gospeladlershof.de/code/deploy.php
new file mode 100644
index 0000000..1d04021
--- /dev/null
+++ b/intern.gospeladlershof.de/code/deploy.php
@@ -0,0 +1,12 @@
+<?php
+
+require __DIR__ . '/session.php';
+
+system('cd /home/horus/sites/gospeladlershof.de && make -s 2>&1 | mail -s "Hugo: gospeladlershof.de" status@iamfabulous.de', $retval);
+
+header($_SERVER["SERVER_PROTOCOL"] . " 302 Redirect");
+if ( 0 !== $retval ) {
+ header("Location: /?deploy=0");
+} else {
+ header("Location: /?deploy=1");
+}