]> jfr.im git - vpn-prov.git/blob - www/init.php
update gpresult to reflect monthly sch task
[vpn-prov.git] / www / init.php
1 <?php
2 // Note: this script is idempotent, it won't do anything if the folder already exists
3
4 header('Content-Type: text/plain');
5
6 include(__DIR__ . '/../common.php');
7
8 passthru(escapeshellarg(__DIR__) . '/../init-dirs.sh', $result_code);
9
10 if ($result_code != 0) {
11 echo "# init-dirs exited non-zero";
12 } else{
13 echo "# Done";
14 }