This commit is contained in:
parent
cc25c7f947
commit
5de62d801c
6 changed files with 252 additions and 185 deletions
|
@ -1,11 +1,13 @@
|
|||
#!/usr/bin/php
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
require_once('vendor/autoload.php');
|
||||
require_once('utils.inc.php');
|
||||
|
||||
use DevCoder\DotEnv;
|
||||
use PhpDevCommunity\DotEnv;
|
||||
use League\CLImate\CLImate;
|
||||
|
||||
$climate = new League\CLImate\CLImate();
|
||||
$climate = new CLImate();
|
||||
$climate->description('yeswiki-remover, remove a domain used for YesWiki because death is not the end 💀😈');
|
||||
|
||||
if (0 == posix_getuid()) {
|
||||
|
@ -54,7 +56,7 @@ if (0 == posix_getuid()) {
|
|||
$climate->shout(
|
||||
'The yeswiki on <bold>'.$domain.'</bold> was successfully removed, congrats ! 🎉'."\n"
|
||||
);
|
||||
// TODO : send log, send email
|
||||
// TODO : send log, send email
|
||||
} else {
|
||||
$climate->info('Ok, let\'s stop here...');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue