Added dummy script for delete_proxy

This commit is contained in:
absurdo 2023-12-03 20:23:47 +01:00
parent 5a9f6f1ce3
commit b2b879c3f8

View file

@ -0,0 +1,18 @@
<?php
include('leviathanutils/vendor/autoload.php');
//getopt(string $short_options, array $long_options = [], int &$rest_index = null)
$long_opts=['user:', 'home_user:'];
$arr_opts=getopt('', $long_opts);
if(!isset($long_opts['user']) || !isset($long_opts['home_user'])) {
echo "php delete_proxy.php --user=username --home_user=/path/to/app/home\n";
}
//Proxy only delete apache vhosts.