Remove riot directory
This commit is contained in:
parent
e4290e3439
commit
0c6e59ad26
|
@ -181,10 +181,16 @@ function restore_remote_riot {
|
||||||
function remove_riot {
|
function remove_riot {
|
||||||
function_check remove_onion_service
|
function_check remove_onion_service
|
||||||
remove_onion_service riot ${RIOT_ONION_PORT}
|
remove_onion_service riot ${RIOT_ONION_PORT}
|
||||||
|
|
||||||
nginx_dissite $RIOT_DOMAIN_NAME
|
nginx_dissite $RIOT_DOMAIN_NAME
|
||||||
if [ -f /etc/nginx/sites-available/$RIOT_DOMAIN_NAME ]; then
|
if [ -f /etc/nginx/sites-available/$RIOT_DOMAIN_NAME ]; then
|
||||||
rm /etc/nginx/sites-available/$RIOT_DOMAIN_NAME
|
rm /etc/nginx/sites-available/$RIOT_DOMAIN_NAME
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -d /var/www/$RIOT_DOMAIN_NAME ]; then
|
||||||
|
rm -rf /var/www/$RIOT_DOMAIN_NAME
|
||||||
|
fi
|
||||||
|
|
||||||
remove_completion_param install_riot
|
remove_completion_param install_riot
|
||||||
sed -i '/riot /d' $COMPLETION_FILE
|
sed -i '/riot /d' $COMPLETION_FILE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue