X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=util%2Fmaintenance.php;h=39c2acb0e1f13a304d0c966ce7ec10bafb064992;hb=c4d3ab68785122ff070c65a444aaa0833b746b2b;hp=b313783a7da24e4fb38d242c9d218e3d2478dadc;hpb=28b3fa4f1fad67816ae6904f94a20d0ee58b2ced;p=friendica.git diff --git a/util/maintenance.php b/util/maintenance.php index b313783a7d..39c2acb0e1 100644 --- a/util/maintenance.php +++ b/util/maintenance.php @@ -1,17 +1,21 @@ 1) { Config::set('system', 'maintenance', $maint_mode); -if ($maint_mode AND ($argc > 2)) { +if ($maint_mode && ($argc > 2)) { $reason_arr = $argv; array_shift($reason_arr); array_shift($reason_arr); @@ -49,5 +53,14 @@ if ($reason != '') { } echo "Usage:\n\n"; -echo "\tphp {$argv[0]} [1] [Maintenance reason]\tSet the system in maintenance mode\n"; -echo "\tphp {$argv[0]} 0 \tSet the system in normal mode\n\n"; +echo "\tphp {$argv[0]} [1] [Maintenance reason|redirection url]\n"; +echo "\t\tSet the system in maintenance mode\n\n"; +echo "\t\tIf the optionally entered maintenance reason is an url\n"; +echo "\t\tthe visitor is redirected to that page.\n"; +echo "\n"; +echo "\t\tExamples:\n"; +echo "\t\t\tphp {$argv[0]} 1 System upgrade\n"; +echo "\t\t\tphp {$argv[0]} 1 http://domain.tld/downtime\n"; +echo "\n"; +echo "\tphp {$argv[0]} 0\n"; +echo "\t\tSet the system in normal mode\n\n";