#!/usr/bin/perl use strict; use warnings; use utf8; my $site = $ARGV[0] || 'SITE'; $site =~ s/\/$//; print "No site given. using SITE as placeholder\n" if $site eq 'SITE'; print < Do this: rm /etc/apache2/sites-enabled/$site.conf apachectl graceful www-phpfpm -s $site -d deluser www-$site sed -i -e '/^$site:/d' /etc/proftpd/ftpd.passwd echo 'DROP DATABASE $site;' | mysql -u root -p`cat /etc/mysql/jelszo` echo 'DROP USER $site\@localhost;' | mysql -u root -p`cat /etc/mysql/jelszo` rm -r /www/$site -> remove from letsencrypt domains.txt, revoke certificate EOT # vim: set tabstop=4 shiftwidth=4 expandtab smarttab: