Update wordops version automatically

This commit is contained in:
VirtuBox
2019-04-27 03:02:26 +02:00
parent 2f9b598113
commit b0671c0e74

View File

@@ -378,10 +378,12 @@ class WOStackController(CementBaseController):
self.app.render((data), 'locations.mustache',
out=wo_nginx)
wo_nginx.close()
if not os.path.isfile("/etc/nginx/common/release"):
with open("/etc/nginx/common/release",
"a") as release_file:
release_file.write("v3.9.5")
release_file.write("v{0}"
.format(WOVariables.wo_version))
release_file.close()
# Nginx-Plus does not have nginx