diff --git a/panel_task.py b/panel_task.py index 325f93e25..441572d4c 100755 --- a/panel_task.py +++ b/panel_task.py @@ -27,6 +27,9 @@ sys.path.append(web_dir) import core.mw as mw import thisdb +from admin import setup +setup.init() + g_log_file = mw.getPanelTaskLog() if not os.path.exists(g_log_file): os.system("touch " + g_log_file) diff --git a/panel_tools.py b/panel_tools.py index 6e2f536c5..058281264 100755 --- a/panel_tools.py +++ b/panel_tools.py @@ -27,8 +27,6 @@ from utils.firewall import Firewall as MwFirewall import core.mw as mw import thisdb -from admin import setup -setup.init() INIT_DIR = "/etc/rc.d/init.d"