Disable scuttlebot site if it exists

This commit is contained in:
Bob Mottram 2017-12-12 17:47:39 +00:00
parent 5912190040
commit 92a26a388c
1 changed files with 4 additions and 2 deletions

View File

@ -195,8 +195,10 @@ function remove_scuttlebot {
firewall_remove ${SCUTTLEBOT_PORT} firewall_remove ${SCUTTLEBOT_PORT}
firewall_remove ${GIT_SSB_PORT} firewall_remove ${GIT_SSB_PORT}
nginx_dissite ${SCUTTLEBOT_DOMAIN_NAME} if [ $SCUTTLEBOT_DOMAIN_NAME ]; then
rm /etc/nginx/sites-available/${SCUTTLEBOT_DOMAIN_NAME} nginx_dissite ${SCUTTLEBOT_DOMAIN_NAME}
rm /etc/nginx/sites-available/${SCUTTLEBOT_DOMAIN_NAME}
fi
systemctl stop scuttlebot systemctl stop scuttlebot
systemctl disable scuttlebot systemctl disable scuttlebot