From c6e157a10573120787a3f1c21226207a61de018a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 31 Mar 2017 22:46:24 +0100 Subject: [PATCH] Remove web install for pelican --- src/freedombone-app-pelican | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/freedombone-app-pelican b/src/freedombone-app-pelican index e3be4fe5..f2250dca 100755 --- a/src/freedombone-app-pelican +++ b/src/freedombone-app-pelican @@ -511,9 +511,15 @@ function restore_remote_pelican { } function remove_pelican { - if [ -d /var/www/$PELICAN_DOMAIN_NAME/htdocs ]; then - rm -rf /var/www/$PELICAN_DOMAIN_NAME/htdocs + if [ -f /etc/nginx/sites-available/$PELICAN_DOMAIN_NAME ]; then + 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 + pip uninstall pelican remove_certs $PELICAN_DOMAIN_NAME