Remove imports
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
import os
|
import os
|
||||||
import urllib.request
|
import urllib.request
|
||||||
|
|
||||||
from cement.core import handler, hook
|
|
||||||
from cement.core.controller import CementBaseController, expose
|
from cement.core.controller import CementBaseController, expose
|
||||||
|
|
||||||
from wo.core.aptget import WOAptGet
|
from wo.core.aptget import WOAptGet
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import glob
|
|||||||
import os
|
import os
|
||||||
import signal
|
import signal
|
||||||
|
|
||||||
from cement.core import handler, hook
|
|
||||||
from cement.core.controller import CementBaseController, expose
|
from cement.core.controller import CementBaseController, expose
|
||||||
from pynginxconfig import NginxConfig
|
from pynginxconfig import NginxConfig
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
from cement.core import handler, hook
|
|
||||||
from cement.core.controller import CementBaseController, expose
|
from cement.core.controller import CementBaseController, expose
|
||||||
|
|
||||||
from wo.core.logging import Log
|
from wo.core.logging import Log
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
import configparser
|
import configparser
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from cement.core import handler, hook
|
|
||||||
from cement.core.controller import CementBaseController, expose
|
from cement.core.controller import CementBaseController, expose
|
||||||
from pynginxconfig import NginxConfig
|
from pynginxconfig import NginxConfig
|
||||||
|
|
||||||
@@ -80,20 +79,20 @@ 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"))
|
||||||
www_listen = config['www']['listen']
|
www_listen = config['www-php72']['listen']
|
||||||
www_ping_path = config['www']['ping.path']
|
www_ping_path = config['www-php72']['ping.path']
|
||||||
www_pm_status_path = config['www']['pm.status_path']
|
www_pm_status_path = config['www-php72']['pm.status_path']
|
||||||
www_pm = config['www']['pm']
|
www_pm = config['www-php72']['pm']
|
||||||
www_pm_max_requests = config['www']['pm.max_requests']
|
www_pm_max_requests = config['www-php72']['pm.max_requests']
|
||||||
www_pm_max_children = config['www']['pm.max_children']
|
www_pm_max_children = config['www-php72']['pm.max_children']
|
||||||
www_pm_start_servers = config['www']['pm.start_servers']
|
www_pm_start_servers = config['www-php72']['pm.start_servers']
|
||||||
www_pm_min_spare_servers = config['www']['pm.min_spare_servers']
|
www_pm_min_spare_servers = config['www-php72']['pm.min_spare_servers']
|
||||||
www_pm_max_spare_servers = config['www']['pm.max_spare_servers']
|
www_pm_max_spare_servers = config['www-php72']['pm.max_spare_servers']
|
||||||
www_request_terminate_time = (config['www']
|
www_request_terminate_time = (config['www-php72']
|
||||||
['request_terminate_timeout'])
|
['request_terminate_timeout'])
|
||||||
try:
|
try:
|
||||||
www_xdebug = (config['www']['php_admin_flag[xdebug.profiler_enable'
|
www_xdebug = (config['www-php72']['php_admin_flag[xdebug.profiler_enable'
|
||||||
'_trigger]'])
|
'_trigger]'])
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
Log.debug(self, "{0}".format(e))
|
Log.debug(self, "{0}".format(e))
|
||||||
www_xdebug = 'off'
|
www_xdebug = 'off'
|
||||||
@@ -157,20 +156,21 @@ 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')
|
||||||
www_listen = config['www']['listen']
|
www_listen = config['www-php73']['listen']
|
||||||
www_ping_path = config['www']['ping.path']
|
www_ping_path = config['www-php73']['ping.path']
|
||||||
www_pm_status_path = config['www']['pm.status_path']
|
www_pm_status_path = config['www-php73']['pm.status_path']
|
||||||
www_pm = config['www']['pm']
|
www_pm = config['www-php73']['pm']
|
||||||
www_pm_max_requests = config['www']['pm.max_requests']
|
www_pm_max_requests = config['www-php73']['pm.max_requests']
|
||||||
www_pm_max_children = config['www']['pm.max_children']
|
www_pm_max_children = config['www-php73']['pm.max_children']
|
||||||
www_pm_start_servers = config['www']['pm.start_servers']
|
www_pm_start_servers = config['www-php73']['pm.start_servers']
|
||||||
www_pm_min_spare_servers = config['www']['pm.min_spare_servers']
|
www_pm_min_spare_servers = config['www-php73']['pm.min_spare_servers']
|
||||||
www_pm_max_spare_servers = config['www']['pm.max_spare_servers']
|
www_pm_max_spare_servers = config['www-php73']['pm.max_spare_servers']
|
||||||
www_request_terminate_time = (config['www']
|
www_request_terminate_time = (config['www-php73']
|
||||||
['request_terminate_timeout'])
|
['request_terminate_timeout'])
|
||||||
try:
|
try:
|
||||||
www_xdebug = (config['www']['php_admin_flag[xdebug.profiler_enable'
|
www_xdebug = (config['www-php73']
|
||||||
'_trigger]'])
|
['php_admin_flag[xdebug.profiler_enable'
|
||||||
|
'_trigger]'])
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
Log.debug(self, "{0}".format(e))
|
Log.debug(self, "{0}".format(e))
|
||||||
www_xdebug = 'off'
|
www_xdebug = 'off'
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import glob
|
|||||||
import gzip
|
import gzip
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from cement.core import handler, hook
|
|
||||||
from cement.core.controller import CementBaseController, expose
|
from cement.core.controller import CementBaseController, expose
|
||||||
|
|
||||||
from wo.cli.plugins.site_functions import logwatch
|
from wo.cli.plugins.site_functions import logwatch
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import getpass
|
import getpass
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from cement.core import handler, hook
|
|
||||||
from cement.core.controller import CementBaseController, expose
|
from cement.core.controller import CementBaseController, expose
|
||||||
|
|
||||||
from wo.core.fileutils import WOFileUtils
|
from wo.core.fileutils import WOFileUtils
|
||||||
from wo.core.git import WOGit
|
from wo.core.git import WOGit
|
||||||
from wo.core.logging import Log
|
from wo.core.logging import Log
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import json
|
|||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from cement.core import handler, hook
|
|
||||||
from cement.core.controller import CementBaseController, expose
|
from cement.core.controller import CementBaseController, expose
|
||||||
from wo.cli.plugins.site_functions import *
|
from wo.cli.plugins.site_functions import *
|
||||||
from wo.cli.plugins.sitedb import (addNewSite, deleteSiteInfo, getAllsites,
|
from wo.cli.plugins.sitedb import (addNewSite, deleteSiteInfo, getAllsites,
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from cement.core import handler, hook
|
|
||||||
from cement.core.controller import CementBaseController, expose
|
from cement.core.controller import CementBaseController, expose
|
||||||
|
|
||||||
from wo.core.aptget import WOAptGet
|
from wo.core.aptget import WOAptGet
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
from cement.core import handler, hook
|
|
||||||
from cement.core.controller import CementBaseController, expose
|
from cement.core.controller import CementBaseController, expose
|
||||||
|
|
||||||
from wo.cli.plugins.stack_pref import post_pref, pre_pref
|
from wo.cli.plugins.stack_pref import post_pref, pre_pref
|
||||||
@@ -10,7 +9,6 @@ from wo.core.download import WODownload
|
|||||||
from wo.core.extract import WOExtract
|
from wo.core.extract import WOExtract
|
||||||
from wo.core.fileutils import WOFileUtils
|
from wo.core.fileutils import WOFileUtils
|
||||||
from wo.core.logging import Log
|
from wo.core.logging import Log
|
||||||
from wo.core.services import WOService
|
|
||||||
from wo.core.shellexec import WOShellExec
|
from wo.core.shellexec import WOShellExec
|
||||||
from wo.core.variables import WOVar
|
from wo.core.variables import WOVar
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import glob
|
import glob
|
||||||
|
|
||||||
from cement.core import handler, hook
|
|
||||||
from cement.core.controller import CementBaseController, expose
|
from cement.core.controller import CementBaseController, expose
|
||||||
|
|
||||||
from wo.cli.plugins.sitedb import getAllsites, updateSiteInfo
|
from wo.cli.plugins.sitedb import getAllsites, updateSiteInfo
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from cement.core import handler, hook
|
|
||||||
from cement.core.controller import CementBaseController, expose
|
from cement.core.controller import CementBaseController, expose
|
||||||
|
|
||||||
from wo.core.download import WODownload
|
from wo.core.download import WODownload
|
||||||
|
|||||||
Reference in New Issue
Block a user