Update changelog, set binary full path
This commit is contained in:
@@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
- Proftpd stack now secured with TLS
|
||||
- New Nginx package built with Brotli from operating system libraries
|
||||
- Brotli configuration with only well compressible MIME types
|
||||
- WordPress site url automatically updated to `https://domain.tld` when using `-le/--letsencrypt` flag
|
||||
|
||||
#### Changed
|
||||
|
||||
|
||||
@@ -225,7 +225,7 @@ class WOInfoController(CementBaseController):
|
||||
"-f1 | tr -d '\n'").read()
|
||||
host = "localhost"
|
||||
port = os.popen("/usr/bin/mysql -e \"show variables\" | "
|
||||
"grep ^port | awk "
|
||||
"/bin/grep ^port | awk "
|
||||
"'{print($2)}' | tr -d '\n'").read()
|
||||
wait_timeout = os.popen("/usr/bin/mysql -e \"show variables\" | grep "
|
||||
"^wait_timeout | awk '{print($2)}' | "
|
||||
@@ -239,10 +239,10 @@ class WOInfoController(CementBaseController):
|
||||
"grep Max_used_connections | awk "
|
||||
"'{print($2)}' | tr -d '\n'").read()
|
||||
datadir = os.popen("/usr/bin/mysql -e \"show variables\" | "
|
||||
"grep datadir | awk"
|
||||
"/bin/grep datadir | awk"
|
||||
" '{print($2)}' | tr -d '\n'").read()
|
||||
socket = os.popen("/usr/bin/mysql -e \"show variables\" | "
|
||||
"grep \"^socket\" | "
|
||||
"/bin/grep \"^socket\" | "
|
||||
"awk '{print($2)}' | tr -d '\n'").read()
|
||||
data = dict(version=version, host=host, port=port,
|
||||
wait_timeout=wait_timeout,
|
||||
|
||||
@@ -237,7 +237,7 @@ class WOSiteController(CementBaseController):
|
||||
WOFileUtils.chdir(self, wo_site_webroot)
|
||||
|
||||
try:
|
||||
subprocess.call(['bash'])
|
||||
subprocess.call(['/bin/bash'])
|
||||
except OSError as e:
|
||||
Log.debug(self, "{0}{1}".format(e.errno, e.strerror))
|
||||
Log.error(self, "unable to change directory")
|
||||
|
||||
@@ -38,7 +38,7 @@ def pre_run_checks(self):
|
||||
try:
|
||||
Log.debug(self, "checking NGINX configuration ...")
|
||||
FNULL = open('/dev/null', 'w')
|
||||
ret = subprocess.check_call(["nginx", "-t"], stdout=FNULL,
|
||||
subprocess.check_call(["/usr/sbin/nginx", "-t"], stdout=FNULL,
|
||||
stderr=subprocess.STDOUT)
|
||||
except CalledProcessError as e:
|
||||
Log.debug(self, "{0}".format(str(e)))
|
||||
@@ -89,7 +89,7 @@ def setupdomain(self, data):
|
||||
try:
|
||||
Log.debug(self, "Checking generated nginx conf, please wait...")
|
||||
FNULL = open('/dev/null', 'w')
|
||||
ret = subprocess.check_call(["nginx", "-t"], stdout=FNULL,
|
||||
subprocess.check_call(["/usr/sbin/nginx", "-t"], stdout=FNULL,
|
||||
stderr=subprocess.STDOUT)
|
||||
Log.info(self, "[" + Log.ENDC + "Done" + Log.OKBLUE + "]")
|
||||
except CalledProcessError as e:
|
||||
|
||||
Reference in New Issue
Block a user