Last active
February 19, 2023 16:22
-
-
Save notcod/31b84568d8d6059dfd99179168591421 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -f "/etc/apache2/sites-available/$1.conf" ] | |
then | |
a2dissite $1.conf > /dev/null 2>&1 | |
rm /etc/apache2/sites-available/$1.conf | |
rm -rf /var/www/$1 | |
rm /etc/apache2/ssl/$1.pem | |
rm /etc/apache2/ssl/$1.key | |
else | |
echo "File is not found" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment