Skip to content
Permalink
Browse files
bug fix: cron path for ubuntu
  • Loading branch information
usmannasir committed Feb 11, 2020
1 parent 0d54457 commit c529e0d4d4dd60e750abc2ec5cfa9a4908c50b6d
Showing 1 changed file with 9 additions and 0 deletions.
@@ -95,11 +95,20 @@ def CronPrem(mode):
cronParent = '/var/spool/cron'
commandT = 'chmod 755 %s' % (cronParent)
ProcessUtilities.executioner(commandT, 'root')

if ProcessUtilities.decideDistro() == ProcessUtilities.ubuntu:
command = 'chmod 755 /var/spool/cron/crontabs'
ProcessUtilities.outputExecutioner(command)

else:
cronParent = '/var/spool/cron'
commandT = 'chmod 700 %s' % (cronParent)
ProcessUtilities.executioner(commandT, 'root')

if ProcessUtilities.decideDistro() == ProcessUtilities.ubuntu:
command = 'chmod 1730 /var/spool/cron/crontabs'
ProcessUtilities.outputExecutioner(command)



def main():

0 comments on commit c529e0d

Please sign in to comment.