change netdata install method
This commit is contained in:
@@ -1070,25 +1070,6 @@ class WOStackController(CementBaseController):
|
|||||||
WOVariables.wo_php_user,
|
WOVariables.wo_php_user,
|
||||||
WOVariables.wo_php_user,
|
WOVariables.wo_php_user,
|
||||||
recursive=True)
|
recursive=True)
|
||||||
|
|
||||||
if any('/tmp/netdata.tar.gz' == x[1]
|
|
||||||
for x in packages):
|
|
||||||
if not os.path.exists('/etc/netdata'):
|
|
||||||
Log.debug(self, "Extracting netdata.tar.gz to location"
|
|
||||||
"/usr/src/netdata.git/")
|
|
||||||
WOExtract.extract(self, '/tmp/netdata.tar.gz',
|
|
||||||
'/usr/src/netdata.git/')
|
|
||||||
WOShellExec.cmd_exec(self, "apt-get install zlib1g-dev "
|
|
||||||
"uuid-dev libmnl-dev gcc make "
|
|
||||||
"git autoconf autoconf-archive "
|
|
||||||
"autogen automake pkg-config "
|
|
||||||
"curl -y")
|
|
||||||
WOShellExec.cmd_exec(self, "bash /usr/src/netdata.git/"
|
|
||||||
"netdata-v1.13.0/"
|
|
||||||
"netdata-installer.sh "
|
|
||||||
"--stable-channel "
|
|
||||||
"--dont-wait")
|
|
||||||
|
|
||||||
if any('/tmp/webgrind.tar.gz' == x[1]
|
if any('/tmp/webgrind.tar.gz' == x[1]
|
||||||
for x in packages):
|
for x in packages):
|
||||||
Log.debug(self, "Extracting file webgrind.tar.gz to "
|
Log.debug(self, "Extracting file webgrind.tar.gz to "
|
||||||
@@ -1232,7 +1213,8 @@ class WOStackController(CementBaseController):
|
|||||||
(not self.app.pargs.nginx) and (not self.app.pargs.php) and
|
(not self.app.pargs.nginx) and (not self.app.pargs.php) and
|
||||||
(not self.app.pargs.mysql) and (not self.app.pargs.wpcli) and
|
(not self.app.pargs.mysql) and (not self.app.pargs.wpcli) and
|
||||||
(not self.app.pargs.phpmyadmin) and
|
(not self.app.pargs.phpmyadmin) and
|
||||||
(not self.app.pargs.composer) and (not self.app.pargs.netdata) and
|
(not self.app.pargs.composer) and
|
||||||
|
(not self.app.pargs.netdata) and
|
||||||
(not self.app.pargs.adminer) and (not self.app.pargs.utils) and
|
(not self.app.pargs.adminer) and (not self.app.pargs.utils) and
|
||||||
(not self.app.pargs.redis) and
|
(not self.app.pargs.redis) and
|
||||||
(not self.app.pargs.phpredisadmin) and
|
(not self.app.pargs.phpredisadmin) and
|
||||||
@@ -1280,8 +1262,10 @@ class WOStackController(CementBaseController):
|
|||||||
apt = ["nginx-plus"] + WOVariables.wo_nginx
|
apt = ["nginx-plus"] + WOVariables.wo_nginx
|
||||||
self.post_pref(apt, packages)
|
self.post_pref(apt, packages)
|
||||||
elif WOAptGet.is_installed(self, 'nginx'):
|
elif WOAptGet.is_installed(self, 'nginx'):
|
||||||
Log.info(self, "WordOps detected an already installed nginx package."
|
Log.info(self, "WordOps detected an already "
|
||||||
"It may or may not have required modules.\n")
|
"installed nginx package."
|
||||||
|
"It may or may not have "
|
||||||
|
"required modules.\n")
|
||||||
apt = ["nginx"] + WOVariables.wo_nginx
|
apt = ["nginx"] + WOVariables.wo_nginx
|
||||||
self.post_pref(apt, packages)
|
self.post_pref(apt, packages)
|
||||||
else:
|
else:
|
||||||
@@ -1376,13 +1360,14 @@ class WOStackController(CementBaseController):
|
|||||||
# Netdata
|
# Netdata
|
||||||
if self.app.pargs.netdata:
|
if self.app.pargs.netdata:
|
||||||
Log.debug(self, "Setting packages variable for Netdata")
|
Log.debug(self, "Setting packages variable for Netdata")
|
||||||
if not os.path.exists('/etc/netdata'):
|
if not os.path.exists('/opt/netdata'):
|
||||||
packages = packages + [['https://github.com/'
|
packages = packages + [['https://my-netdata.io/'
|
||||||
'netdata/netdata/releases/'
|
'kickstart.sh',
|
||||||
'download/v1.13.0/'
|
'/tmp/kickstart.sh',
|
||||||
'netdata-v1.13.0.tar.gz',
|
'Netdata']]
|
||||||
'/tmp/netdata.tar.gz',
|
WOShellExec.cmd_exec(
|
||||||
'netdata']]
|
self, "bash /tmp/kickstart.sh "
|
||||||
|
"--dont-wait --no-updates")
|
||||||
|
|
||||||
# UTILS
|
# UTILS
|
||||||
if self.app.pargs.utils:
|
if self.app.pargs.utils:
|
||||||
|
|||||||
Reference in New Issue
Block a user