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,
|
||||
'/etc/nginx/sites-available/22222',
|
||||
'22222.mustache', data, overwrite=False)
|
||||
|
||||
passwd = ''.join([random.choice
|
||||
(string.ascii_letters + string.digits)
|
||||
for n in range(24)])
|
||||
|
||||
@@ -57,12 +57,13 @@ class WOStackUpgradeController(CementBaseController):
|
||||
]
|
||||
|
||||
@expose(hide=True)
|
||||
def default(self):
|
||||
def default(self, disp_msg=False):
|
||||
# All package update
|
||||
apt_packages = []
|
||||
packages = []
|
||||
nginx_packages = []
|
||||
empty_packages = []
|
||||
self.msg = []
|
||||
pargs = self.app.pargs
|
||||
|
||||
if ((not pargs.web) and (not pargs.nginx) and
|
||||
|
||||
@@ -147,8 +147,7 @@ class WOVariables():
|
||||
if wo_distro == 'raspbian':
|
||||
wo_mysql = ["mariadb-server", "percona-toolkit",
|
||||
"python3-mysqldb"]
|
||||
elif wo_distro == 'debian':
|
||||
if wo_platform_codename == 'jessie':
|
||||
elif wo_platform_codename == 'jessie':
|
||||
wo_mysql = ["mariadb-server", "percona-toolkit",
|
||||
"python3-mysql.connector"]
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user