Remove web install for pelican

This commit is contained in:
Bob Mottram 2017-03-31 22:46:24 +01:00
parent fb4d8e982b
commit c6e157a105
1 changed files with 8 additions and 2 deletions

View File

@ -511,9 +511,15 @@ function restore_remote_pelican {
} }
function remove_pelican { function remove_pelican {
if [ -d /var/www/$PELICAN_DOMAIN_NAME/htdocs ]; then if [ -f /etc/nginx/sites-available/$PELICAN_DOMAIN_NAME ]; then
rm -rf /var/www/$PELICAN_DOMAIN_NAME/htdocs nginx_dissite pelican
rm /etc/nginx/sites-available/$PELICAN_DOMAIN_NAME
if [ -d /var/www/$PELICAN_DOMAIN_NAME ]; then
rm -rf /var/www/$PELICAN_DOMAIN_NAME
fi
systemctl reload nginx
fi fi
pip uninstall pelican pip uninstall pelican
remove_certs $PELICAN_DOMAIN_NAME remove_certs $PELICAN_DOMAIN_NAME