mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 05:15:49 +01:00
bu fix: wp manager version fetch
This commit is contained in:
@@ -1974,8 +1974,8 @@ class CloudManager:
|
||||
except:
|
||||
path = '/home/%s/public_html' % (self.data['domain'])
|
||||
|
||||
command = 'wp core version --skip-plugins --skip-themes --path=%s' % (path)
|
||||
finalDic['version'] = str(ProcessUtilities.outputExecutioner(command, website.externalApp))
|
||||
command = 'wp core version --skip-plugins --skip-themes --path=%s 2>/dev/null' % (path)
|
||||
finalDic['version'] = str(ProcessUtilities.outputExecutioner(command, website.externalApp, True))
|
||||
|
||||
## LSCache
|
||||
|
||||
@@ -2633,8 +2633,8 @@ class CloudManager:
|
||||
|
||||
path = '/home/%s/public_html' % (self.data['domainName'])
|
||||
|
||||
command = 'wp core version --allow-root --skip-plugins --skip-themes --path=%s' % (path)
|
||||
result = ProcessUtilities.outputExecutioner(command)
|
||||
command = 'wp core version --allow-root --skip-plugins --skip-themes --path=%s 2>/dev/null' % (path)
|
||||
result = ProcessUtilities.outputExecutioner(command, None, True)
|
||||
|
||||
if result.find('Error:') > -1:
|
||||
final_dic = {'status': 0, 'fetchStatus': 0,
|
||||
|
||||
Reference in New Issue
Block a user