Remove riot directory

This commit is contained in:
Bob Mottram 2017-05-10 11:54:49 +01:00
parent e4290e3439
commit 0c6e59ad26
1 changed files with 6 additions and 0 deletions

View File

@ -181,10 +181,16 @@ function restore_remote_riot {
function remove_riot {
function_check remove_onion_service
remove_onion_service riot ${RIOT_ONION_PORT}
nginx_dissite $RIOT_DOMAIN_NAME
if [ -f /etc/nginx/sites-available/$RIOT_DOMAIN_NAME ]; then
rm /etc/nginx/sites-available/$RIOT_DOMAIN_NAME
fi
if [ -d /var/www/$RIOT_DOMAIN_NAME ]; then
rm -rf /var/www/$RIOT_DOMAIN_NAME
fi
remove_completion_param install_riot
sed -i '/riot /d' $COMPLETION_FILE
}