diff --git a/src/freedombone-app-riot b/src/freedombone-app-riot index f26a196f..ae94d1e6 100755 --- a/src/freedombone-app-riot +++ b/src/freedombone-app-riot @@ -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 }