Simplify stack upgrade
This commit is contained in:
@@ -1114,7 +1114,7 @@ def post_pref(self, apt_packages, packages):
|
|||||||
WOService.reload_service(self, 'proftpd')
|
WOService.reload_service(self, 'proftpd')
|
||||||
|
|
||||||
# Redis configuration
|
# Redis configuration
|
||||||
if set(["redis-server"]).issubset(set(apt_packages)):
|
if set(WOVariables.wo_redis).issubset(set(apt_packages)):
|
||||||
# set redis.conf parameter
|
# set redis.conf parameter
|
||||||
# set maxmemory 10% for ram below 512MB and 20% for others
|
# set maxmemory 10% for ram below 512MB and 20% for others
|
||||||
# set maxmemory-policy allkeys-lru
|
# set maxmemory-policy allkeys-lru
|
||||||
|
|||||||
@@ -149,12 +149,7 @@ class WOStackUpgradeController(CementBaseController):
|
|||||||
"releases/download/v{0}/wordops-dashboard.tar.gz"
|
"releases/download/v{0}/wordops-dashboard.tar.gz"
|
||||||
.format(WOVariables.wo_dashboard),
|
.format(WOVariables.wo_dashboard),
|
||||||
"/var/lib/wo/tmp/wo-dashboard.tar.gz",
|
"/var/lib/wo/tmp/wo-dashboard.tar.gz",
|
||||||
"WordOps Dashboard"],
|
"WordOps Dashboard"]]
|
||||||
["https://github.com/soerennb/"
|
|
||||||
"extplorer/archive/v{0}.tar.gz"
|
|
||||||
.format(WOVariables.wo_extplorer),
|
|
||||||
"/var/lib/wo/tmp/extplorer.tar.gz",
|
|
||||||
"eXtplorer"]]
|
|
||||||
|
|
||||||
if pargs.phpmyadmin:
|
if pargs.phpmyadmin:
|
||||||
if os.path.isdir('/var/www/22222/htdocs/db/pma'):
|
if os.path.isdir('/var/www/22222/htdocs/db/pma'):
|
||||||
@@ -177,7 +172,6 @@ class WOStackUpgradeController(CementBaseController):
|
|||||||
else:
|
else:
|
||||||
Log.error(self, "Composer isn't installed")
|
Log.error(self, "Composer isn't installed")
|
||||||
|
|
||||||
if len(packages) or len(apt_packages):
|
|
||||||
if len(apt_packages):
|
if len(apt_packages):
|
||||||
Log.info(self, "Your site may be down for few seconds if "
|
Log.info(self, "Your site may be down for few seconds if "
|
||||||
"you are upgrading Nginx, PHP-FPM, MariaDB or Redis")
|
"you are upgrading Nginx, PHP-FPM, MariaDB or Redis")
|
||||||
|
|||||||
Reference in New Issue
Block a user