Remove web install for pelican
This commit is contained in:
parent
fb4d8e982b
commit
c6e157a105
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue