Skip to content
Snippets Groups Projects
Commit 0c6e59ad authored by Bob Mottram's avatar Bob Mottram
Browse files

Remove riot directory

parent e4290e34
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment