diff --git a/plogical/test.py b/plogical/test.py index efa8b89fb..e69de29bb 100755 --- a/plogical/test.py +++ b/plogical/test.py @@ -1,12 +0,0 @@ -import subprocess -import json - -command = 'postqueue -j' - -result = subprocess.check_output(command, shell=True).decode().split('\n') - -result = result[0] - -data = json.loads(result) - -print(data['queue_name']) \ No newline at end of file diff --git a/plogical/upgrade.py b/plogical/upgrade.py index f60d57d89..1b25e8139 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -203,7 +203,7 @@ class Upgrade: Upgrade.executioner(command, 0) command = 'mv /usr/local/CyberCP/public/phpMyAdmin-*-all-languages /usr/local/CyberCP/public/phpmyadmin' - Upgrade.executioner(command, 0) + subprocess.call(command, shell=True) command = 'rm -f /usr/local/CyberCP/public/phpmyadmin.zip' Upgrade.executioner(command, 0)