|
@ -57,7 +57,15 @@ def install_cronjobs(): |
|
|
print "Problem installing cronjobs: {}".format(e) |
|
|
print "Problem installing cronjobs: {}".format(e) |
|
|
else: |
|
|
else: |
|
|
cron.write() |
|
|
cron.write() |
|
|
print "Cron jobs written succesfully" |
|
|
|
|
|
|
|
|
print "Cron jobs written successfully" |
|
|
|
|
|
|
|
|
|
|
|
@manager.command |
|
|
|
|
|
def delete_cronjobs(): |
|
|
|
|
|
from os import path |
|
|
|
|
|
from crontab import CronTab |
|
|
|
|
|
cron = CronTab(user=True) |
|
|
|
|
|
cron.remove_all(comment='DOOBSAUTO') |
|
|
|
|
|
print "Existing cronjobs deleted successfully" |
|
|
|
|
|
|
|
|
@manager.command |
|
|
@manager.command |
|
|
def admin(name): |
|
|
def admin(name): |
|
|