Disable scuttlebot site if it exists
This commit is contained in:
parent
5912190040
commit
92a26a388c
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue