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