add backup and cleanup before upgrade

This commit is contained in:
VirtuBox
2019-03-23 18:05:30 +01:00
parent 9fae13c30a
commit 8667c1da83
4 changed files with 92 additions and 49 deletions

View File

@@ -214,10 +214,7 @@ class WOStackController(CementBaseController):
wo_nginx.close()
data = dict(php="9000", debug="9001",
php7="9070", debug7="9170",
php7conf=True
if WOAptGet.is_installed(self, 'php7.0-fpm')
else False)
php7="9070", debug7="9170")
Log.debug(self, 'Writting the nginx configuration to '
'file /etc/nginx/conf.d/upstream.conf')
wo_nginx = open('/etc/nginx/conf.d/upstream.conf',