summaryrefslogtreecommitdiff
path: root/intern.gospeladlershof.de/code/deploy.php
blob: 1d04021acfc1f44f34a056e47e0c4d62a06ec8dc (plain)
1
2
3
4
5
6
7
8
9
10
11
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");
}