add yeswiki-move, fix shebangs, chore deps
Some checks are pending
/ test (push) Waiting to run

This commit is contained in:
Florian Schmitt 2024-12-05 21:49:11 +03:00
parent cc25c7f947
commit 5de62d801c
6 changed files with 252 additions and 185 deletions

View file

@ -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...');
}