From a70bd3804b799618666db9a8313af2824e3bfaf8 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Tue, 30 Jul 2019 15:55:48 +0200 Subject: [PATCH] Fix wo_wan variable --- wo/cli/plugins/stack.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wo/cli/plugins/stack.py b/wo/cli/plugins/stack.py index 6213d46..c34d563 100644 --- a/wo/cli/plugins/stack.py +++ b/wo/cli/plugins/stack.py @@ -1237,9 +1237,7 @@ class WOStackController(CementBaseController): wo_wan = os.popen("/sbin/ip -4 route get 8.8.8.8 | " "grep -oP \"dev [^[:space:]]+ \" " "| cut -d ' ' -f 2").read() - if wo_wan == '': - wo_wan = 'eth0' - if WOVariables.wo_wan != 'eth0': + if (wo_wan != 'eth0' and wo_wan != ''): WOFileUtils.searchreplace(self, "{0}22222/htdocs/index.php" .format(WOVariables.wo_webroot),