Merge pull request #131 from WordOps/updating-configuration
Updating configuration
This commit is contained in:
@@ -359,7 +359,6 @@ def post_pref(self, apt_packages, packages, upgrade=False):
|
|||||||
WOTemplate.render(self,
|
WOTemplate.render(self,
|
||||||
'/etc/nginx/sites-available/22222',
|
'/etc/nginx/sites-available/22222',
|
||||||
'22222.mustache', data, overwrite=False)
|
'22222.mustache', data, overwrite=False)
|
||||||
|
|
||||||
passwd = ''.join([random.choice
|
passwd = ''.join([random.choice
|
||||||
(string.ascii_letters + string.digits)
|
(string.ascii_letters + string.digits)
|
||||||
for n in range(24)])
|
for n in range(24)])
|
||||||
|
|||||||
@@ -57,12 +57,13 @@ class WOStackUpgradeController(CementBaseController):
|
|||||||
]
|
]
|
||||||
|
|
||||||
@expose(hide=True)
|
@expose(hide=True)
|
||||||
def default(self):
|
def default(self, disp_msg=False):
|
||||||
# All package update
|
# All package update
|
||||||
apt_packages = []
|
apt_packages = []
|
||||||
packages = []
|
packages = []
|
||||||
nginx_packages = []
|
nginx_packages = []
|
||||||
empty_packages = []
|
empty_packages = []
|
||||||
|
self.msg = []
|
||||||
pargs = self.app.pargs
|
pargs = self.app.pargs
|
||||||
|
|
||||||
if ((not pargs.web) and (not pargs.nginx) and
|
if ((not pargs.web) and (not pargs.nginx) and
|
||||||
|
|||||||
@@ -147,8 +147,7 @@ class WOVariables():
|
|||||||
if wo_distro == 'raspbian':
|
if wo_distro == 'raspbian':
|
||||||
wo_mysql = ["mariadb-server", "percona-toolkit",
|
wo_mysql = ["mariadb-server", "percona-toolkit",
|
||||||
"python3-mysqldb"]
|
"python3-mysqldb"]
|
||||||
elif wo_distro == 'debian':
|
elif wo_platform_codename == 'jessie':
|
||||||
if wo_platform_codename == 'jessie':
|
|
||||||
wo_mysql = ["mariadb-server", "percona-toolkit",
|
wo_mysql = ["mariadb-server", "percona-toolkit",
|
||||||
"python3-mysql.connector"]
|
"python3-mysql.connector"]
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user