Fix wo stack install --all
This commit is contained in:
@@ -15,6 +15,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
- Fix Netdata install on Raspbian 9/10
|
- Fix Netdata install on Raspbian 9/10
|
||||||
- `wo stack remove/purge` confirmation
|
- `wo stack remove/purge` confirmation
|
||||||
- Nginx error after removing a SSL certificate used to secure WordOps backend
|
- Nginx error after removing a SSL certificate used to secure WordOps backend
|
||||||
|
- `wo stack install --all`
|
||||||
|
|
||||||
|
#### Changed
|
||||||
|
|
||||||
|
- updated OpCache Control Panel to v0.2.0
|
||||||
|
|
||||||
### v3.9.8.4 - 2019-08-28
|
### v3.9.8.4 - 2019-08-28
|
||||||
|
|
||||||
|
|||||||
@@ -238,7 +238,8 @@ class WOStackController(CementBaseController):
|
|||||||
# WP-CLI
|
# WP-CLI
|
||||||
if pargs.wpcli:
|
if pargs.wpcli:
|
||||||
Log.debug(self, "Setting packages variable for WP-CLI")
|
Log.debug(self, "Setting packages variable for WP-CLI")
|
||||||
if not WOShellExec.cmd_exec(self, "command -v wp"):
|
if (not os.path.isfile("/usr/local/bin/wp") and not
|
||||||
|
os.path.isfile("/usr/bin/wp")):
|
||||||
packages = packages + [["https://github.com/wp-cli/wp-cli/"
|
packages = packages + [["https://github.com/wp-cli/wp-cli/"
|
||||||
"releases/download/v{0}/"
|
"releases/download/v{0}/"
|
||||||
"wp-cli-{0}.phar"
|
"wp-cli-{0}.phar"
|
||||||
@@ -308,79 +309,83 @@ class WOStackController(CementBaseController):
|
|||||||
Log.info(self, "phpRedisAdmin already installed")
|
Log.info(self, "phpRedisAdmin already installed")
|
||||||
|
|
||||||
# Composer
|
# Composer
|
||||||
if pargs.composer and (not
|
if pargs.composer:
|
||||||
os.path.isfile('/usr/local/bin/composer')):
|
if not os.path.isfile('/usr/local/bin/composer'):
|
||||||
Log.debug(self, "Setting packages variable for Composer ")
|
Log.debug(self, "Setting packages variable for Composer ")
|
||||||
packages = packages + [["https://getcomposer.org/"
|
packages = packages + [["https://getcomposer.org/"
|
||||||
"installer",
|
"installer",
|
||||||
"/var/lib/wo/tmp/composer-install",
|
"/var/lib/wo/tmp/composer-install",
|
||||||
"Composer"]]
|
"Composer"]]
|
||||||
else:
|
else:
|
||||||
Log.debug(self, "Composer already installed")
|
Log.debug(self, "Composer already installed")
|
||||||
Log.info(self, "Composer already installed")
|
Log.info(self, "Composer already installed")
|
||||||
|
|
||||||
# ADMINER
|
# ADMINER
|
||||||
if pargs.adminer and (not
|
if pargs.adminer:
|
||||||
os.path.isfile("{0}22222/htdocs/db/"
|
if not os.path.isfile("{0}22222/htdocs/db/"
|
||||||
"adminer/index.php"
|
"adminer/index.php"
|
||||||
.format(wo_webroot))):
|
.format(wo_webroot)):
|
||||||
Log.debug(self, "Setting packages variable for Adminer ")
|
Log.debug(self, "Setting packages variable for Adminer ")
|
||||||
packages = packages + [["https://github.com/vrana/adminer/"
|
packages = packages + [["https://github.com/vrana/adminer/"
|
||||||
"releases/download/v{0}"
|
"releases/download/v{0}"
|
||||||
"/adminer-{0}.php"
|
"/adminer-{0}.php"
|
||||||
.format(WOVariables.wo_adminer),
|
.format(WOVariables.wo_adminer),
|
||||||
"{0}22222/"
|
"{0}22222/"
|
||||||
"htdocs/db/adminer/index.php"
|
"htdocs/db/adminer/index.php"
|
||||||
.format(WOVariables.wo_webroot),
|
.format(WOVariables.wo_webroot),
|
||||||
"Adminer"],
|
"Adminer"],
|
||||||
["https://raw.githubusercontent.com"
|
["https://raw.githubusercontent.com"
|
||||||
"/vrana/adminer/master/designs/"
|
"/vrana/adminer/master/designs/"
|
||||||
"pepa-linha/adminer.css",
|
"pepa-linha/adminer.css",
|
||||||
"{0}22222/"
|
"{0}22222/"
|
||||||
"htdocs/db/adminer/adminer.css"
|
"htdocs/db/adminer/adminer.css"
|
||||||
.format(WOVariables.wo_webroot),
|
.format(WOVariables.wo_webroot),
|
||||||
"Adminer theme"]]
|
"Adminer theme"]]
|
||||||
# mysqltuner
|
# mysqltuner
|
||||||
if pargs.mysqltuner and (not
|
if pargs.mysqltuner:
|
||||||
os.path.isfile("/usr/bin/mysqltuner")):
|
if not os.path.isfile("/usr/bin/mysqltuner"):
|
||||||
Log.debug(self, "Setting packages variable for MySQLTuner ")
|
Log.debug(self, "Setting packages variable "
|
||||||
packages = packages + [["https://raw."
|
"for MySQLTuner ")
|
||||||
"githubusercontent.com/"
|
packages = packages + [["https://raw."
|
||||||
"major/MySQLTuner-perl"
|
"githubusercontent.com/"
|
||||||
"/master/mysqltuner.pl",
|
"major/MySQLTuner-perl"
|
||||||
"/usr/bin/mysqltuner",
|
"/master/mysqltuner.pl",
|
||||||
"MySQLTuner"]]
|
"/usr/bin/mysqltuner",
|
||||||
|
"MySQLTuner"]]
|
||||||
|
|
||||||
# Netdata
|
# Netdata
|
||||||
if pargs.netdata and (
|
if pargs.netdata:
|
||||||
not os.path.isdir('/opt/netdata') and not
|
if (not os.path.isdir('/opt/netdata') and not
|
||||||
os.path.isdir("/etc/netdata")):
|
os.path.isdir("/etc/netdata")):
|
||||||
Log.debug(self, "Setting packages variable for Netdata")
|
Log.debug(
|
||||||
if WOVariables.wo_distro == 'raspbian':
|
self, "Setting packages variable for Netdata")
|
||||||
packages = packages + [['https://my-netdata.io/'
|
if WOVariables.wo_distro == 'raspbian':
|
||||||
'kickstart.sh',
|
packages = packages + [['https://my-netdata.io/'
|
||||||
'/var/lib/wo/tmp/kickstart.sh',
|
'kickstart.sh',
|
||||||
'Netdata']]
|
'/var/lib/wo/tmp/kickstart.sh',
|
||||||
|
'Netdata']]
|
||||||
|
else:
|
||||||
|
packages = packages + [['https://my-netdata.io/'
|
||||||
|
'kickstart-static64.sh',
|
||||||
|
'/var/lib/wo/tmp/kickstart.sh',
|
||||||
|
'Netdata']]
|
||||||
else:
|
else:
|
||||||
packages = packages + [['https://my-netdata.io/'
|
Log.debug(self, "Netdata already installed")
|
||||||
'kickstart-static64.sh',
|
Log.info(self, "Netdata already installed")
|
||||||
'/var/lib/wo/tmp/kickstart.sh',
|
|
||||||
'Netdata']]
|
|
||||||
else:
|
|
||||||
Log.debug(self, "Netdata already installed")
|
|
||||||
Log.info(self, "Netdata already installed")
|
|
||||||
|
|
||||||
# WordOps Dashboard
|
# WordOps Dashboard
|
||||||
if pargs.dashboard:
|
if pargs.dashboard:
|
||||||
if not os.path.isfile('/var/www/22222/htdocs/index.php'):
|
if not os.path.isfile('/var/www/22222/htdocs/index.php'):
|
||||||
Log.debug(self,
|
Log.debug(self,
|
||||||
"Setting packages variable for WO-Dashboard")
|
"Setting packages variable for WO-Dashboard")
|
||||||
packages = packages + \
|
packages = \
|
||||||
[["https://github.com/WordOps/wordops-dashboard/"
|
packages + [["https://github.com/WordOps"
|
||||||
"releases/download/v{0}/wordops-dashboard.tar.gz"
|
"/wordops-dashboard/"
|
||||||
.format(WOVariables.wo_dashboard),
|
"releases/download/v{0}/"
|
||||||
"/var/lib/wo/tmp/wo-dashboard.tar.gz",
|
"wordops-dashboard.tar.gz"
|
||||||
"WordOps Dashboard"]]
|
.format(WOVariables.wo_dashboard),
|
||||||
|
"/var/lib/wo/tmp/wo-dashboard.tar.gz",
|
||||||
|
"WordOps Dashboard"]]
|
||||||
else:
|
else:
|
||||||
Log.debug(self, "WordOps dashboard already installed")
|
Log.debug(self, "WordOps dashboard already installed")
|
||||||
Log.info(self, "WordOps dashboard already installed")
|
Log.info(self, "WordOps dashboard already installed")
|
||||||
@@ -421,9 +426,8 @@ class WOStackController(CementBaseController):
|
|||||||
"cache/opcache/opgui.php"
|
"cache/opcache/opgui.php"
|
||||||
.format(WOVariables.wo_webroot),
|
.format(WOVariables.wo_webroot),
|
||||||
"Opgui"],
|
"Opgui"],
|
||||||
["https://gist.github.com/ck-on/4959032"
|
["https://raw.githubusercontent.com/"
|
||||||
"/raw/0b871b345fd6cfcd6d2be030c1f33d1"
|
"mlazarov/ocp/master/ocp.php",
|
||||||
"ad6a475cb/ocp.php",
|
|
||||||
"{0}22222/htdocs/cache/"
|
"{0}22222/htdocs/cache/"
|
||||||
"opcache/ocp.php"
|
"opcache/ocp.php"
|
||||||
.format(WOVariables.wo_webroot),
|
.format(WOVariables.wo_webroot),
|
||||||
|
|||||||
Reference in New Issue
Block a user