Fix wo_wan variable

This commit is contained in:
VirtuBox
2019-07-30 15:55:48 +02:00
parent 05fc7ba161
commit a70bd3804b

View File

@@ -1237,9 +1237,7 @@ class WOStackController(CementBaseController):
wo_wan = os.popen("/sbin/ip -4 route get 8.8.8.8 | " wo_wan = os.popen("/sbin/ip -4 route get 8.8.8.8 | "
"grep -oP \"dev [^[:space:]]+ \" " "grep -oP \"dev [^[:space:]]+ \" "
"| cut -d ' ' -f 2").read() "| cut -d ' ' -f 2").read()
if wo_wan == '': if (wo_wan != 'eth0' and wo_wan != ''):
wo_wan = 'eth0'
if WOVariables.wo_wan != 'eth0':
WOFileUtils.searchreplace(self, WOFileUtils.searchreplace(self,
"{0}22222/htdocs/index.php" "{0}22222/htdocs/index.php"
.format(WOVariables.wo_webroot), .format(WOVariables.wo_webroot),