Browse Source

added msgs as per review

bugfixes
harshadyeola 10 years ago
parent
commit
d3ac0f95ec
  1. 6
      ee/cli/plugins/debug.py

6
ee/cli/plugins/debug.py

@ -494,6 +494,8 @@ class EEDebugController(CementBaseController):
if not EEShellExec.cmd_exec(self, "crontab -l | grep " if not EEShellExec.cmd_exec(self, "crontab -l | grep "
"'ee debug --import-slow-log'"): "'ee debug --import-slow-log'"):
if not cron_time == 0: if not cron_time == 0:
Log.info(self, "setting up crontab entry,"
" please wait ...")
EEShellExec.cmd_exec(self, "/bin/bash -c \"crontab -l " EEShellExec.cmd_exec(self, "/bin/bash -c \"crontab -l "
"2> /dev/null | {{ cat; echo -e" "2> /dev/null | {{ cat; echo -e"
" \\\"#EasyEngine start MySQL " " \\\"#EasyEngine start MySQL "
@ -505,6 +507,8 @@ class EEDebugController(CementBaseController):
.format(cron_time)) .format(cron_time))
else: else:
if not cron_time == 0: if not cron_time == 0:
Log.info(self, "updating crontab entry,"
" please wait ...")
if not EEShellExec.cmd_exec(self, "/bin/bash -c " if not EEShellExec.cmd_exec(self, "/bin/bash -c "
"\"crontab " "\"crontab "
"-l | sed '/EasyEngine " "-l | sed '/EasyEngine "
@ -518,6 +522,8 @@ class EEDebugController(CementBaseController):
.format(cron_time)): .format(cron_time)):
Log.error(self, "failed to update crontab entry") Log.error(self, "failed to update crontab entry")
else: else:
Log.info(self, "removing crontab entry,"
" please wait ...")
if not EEShellExec.cmd_exec(self, "/bin/bash -c " if not EEShellExec.cmd_exec(self, "/bin/bash -c "
"\"crontab " "\"crontab "
"-l | sed '/EasyEngine " "-l | sed '/EasyEngine "

Loading…
Cancel
Save