Ignore disabled sites' nginx configuration

Fixes #5
This commit is contained in:
Jan Dittberner 2019-06-30 11:54:49 +02:00
parent c639c8c68d
commit 1c9d09c7de

View file

@ -113,7 +113,7 @@ def disable_web_vhost(sitename):
"""
try:
subprocess.check_output([
SUDO_CMD, RM_CMD, _build_enabled_vhost_path(sitename)],
SUDO_CMD, RM_CMD, "-f", _build_enabled_vhost_path(sitename)],
stderr=subprocess.STDOUT)
subprocess.check_output([
SUDO_CMD, SERVICE_CMD, 'nginx', 'reload'],