Another fix for info
This commit is contained in:
@@ -79,7 +79,7 @@ class WOInfoController(CementBaseController):
|
|||||||
max_execution_time = config['PHP']['max_execution_time']
|
max_execution_time = config['PHP']['max_execution_time']
|
||||||
|
|
||||||
config.read('/etc/{0}/fpm/pool.d/www.conf'.format("php/7.2"))
|
config.read('/etc/{0}/fpm/pool.d/www.conf'.format("php/7.2"))
|
||||||
wo_sec = (config.sections()[0])
|
wo_sec = (config.sections())[0]
|
||||||
www_listen = config[wo_sec]['listen']
|
www_listen = config[wo_sec]['listen']
|
||||||
www_ping_path = config[wo_sec]['ping.path']
|
www_ping_path = config[wo_sec]['ping.path']
|
||||||
www_pm_status_path = config[wo_sec]['pm.status_path']
|
www_pm_status_path = config[wo_sec]['pm.status_path']
|
||||||
@@ -158,7 +158,7 @@ class WOInfoController(CementBaseController):
|
|||||||
max_execution_time = config['PHP']['max_execution_time']
|
max_execution_time = config['PHP']['max_execution_time']
|
||||||
|
|
||||||
config.read('/etc/php/7.3/fpm/pool.d/www.conf')
|
config.read('/etc/php/7.3/fpm/pool.d/www.conf')
|
||||||
wo_sec = (config.sections()[0])
|
wo_sec = (config.sections())[0]
|
||||||
www_listen = config[wo_sec]['listen']
|
www_listen = config[wo_sec]['listen']
|
||||||
www_ping_path = config[wo_sec]['ping.path']
|
www_ping_path = config[wo_sec]['ping.path']
|
||||||
www_pm_status_path = config[wo_sec]['pm.status_path']
|
www_pm_status_path = config[wo_sec]['pm.status_path']
|
||||||
|
|||||||
@@ -403,14 +403,14 @@ def setupwordpress(self, data, vhostonly=False):
|
|||||||
try:
|
try:
|
||||||
|
|
||||||
Log.debug(self, "Moving file from {0} to {1}".format(os.getcwd(
|
Log.debug(self, "Moving file from {0} to {1}".format(os.getcwd(
|
||||||
)+'/wp-config.php', os.path.abspath(os.path.join(os.getcwd(),
|
) + '/wp-config.php', os.path.abspath(os.path.join(os.getcwd(),
|
||||||
os.pardir))))
|
os.pardir))))
|
||||||
shutil.move(os.getcwd()+'/wp-config.php',
|
shutil.move(os.getcwd() + '/wp-config.php',
|
||||||
os.path.abspath(os.path.join(os.getcwd(), os.pardir)))
|
os.path.abspath(os.path.join(os.getcwd(), os.pardir)))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
Log.debug(self, str(e))
|
Log.debug(self, str(e))
|
||||||
Log.error(self, 'Unable to move file from {0} to {1}'
|
Log.error(self, 'Unable to move file from {0} to {1}'
|
||||||
.format(os.getcwd()+'/wp-config.php',
|
.format(os.getcwd() + '/wp-config.php',
|
||||||
os.path.abspath(os.path.join(os.getcwd(),
|
os.path.abspath(os.path.join(os.getcwd(),
|
||||||
os.pardir))), False)
|
os.pardir))), False)
|
||||||
raise SiteError("Unable to move wp-config.php")
|
raise SiteError("Unable to move wp-config.php")
|
||||||
|
|||||||
Reference in New Issue
Block a user