From a2973ee96ae75c87949376801792efa0e4905d61 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Wed, 3 Apr 2019 07:57:36 +0200 Subject: [PATCH] fix netdata --- wo/cli/plugins/stack.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/wo/cli/plugins/stack.py b/wo/cli/plugins/stack.py index 03766ff..75703c8 100644 --- a/wo/cli/plugins/stack.py +++ b/wo/cli/plugins/stack.py @@ -1042,7 +1042,7 @@ class WOStackController(CementBaseController): WOVariables.wo_php_user, WOVariables.wo_php_user, recursive=True) - + # composer install and phpmyadmin update if any('/tmp/composer-install' == x[1] for x in packages): WOShellExec.cmd_exec(self, "php -q /tmp/composer-install " @@ -1053,6 +1053,12 @@ class WOStackController(CementBaseController): WOShellExec.cmd_exec(self, "sudo -u www-data -H composer " "update --no-dev -d " "/var/www/22222/htdocs/db/pma/") + # netdata install + if any('/tmp/kickstart.sh' == x[1] + for x in packages): + if not os.path.exists('/etc/netdata'): + WOShellExec.cmd_exec(self, "bash /tmp/kickstart.sh " + "--dont-wait --no-updates") if any('/tmp/memcached.tar.gz' == x[1] for x in packages): @@ -1365,9 +1371,6 @@ class WOStackController(CementBaseController): 'kickstart.sh', '/tmp/kickstart.sh', 'Netdata']] - WOShellExec.cmd_exec( - self, "bash /tmp/kickstart.sh " - "--dont-wait --no-updates") # UTILS if self.app.pargs.utils: