Update requirements

This commit is contained in:
VirtuBox
2019-10-03 12:58:44 +02:00
parent 204469ae4c
commit 1345ab723d
2 changed files with 12 additions and 3 deletions

View File

@@ -95,8 +95,8 @@ def setupdomain(self, data):
# Check nginx -t and return status over it
try:
Log.debug(self, "Checking generated nginx conf, please wait...")
FNULL = open('/dev/null', 'w')
subprocess.check_call(["/usr/sbin/nginx", "-t"], stdout=FNULL,
fnull = open('/dev/null', 'w')
subprocess.check_call(["/usr/sbin/nginx", "-t"], stdout=fnull,
stderr=subprocess.STDOUT)
Log.info(self, "[" + Log.ENDC + "Done" + Log.OKBLUE + "]")
except CalledProcessError as e: