Commit b9ed79f9 authored by Christian Juerges's avatar Christian Juerges
Browse files

allow comments

parent f85b6ce4
......@@ -58,15 +58,17 @@ def main():
# time.sleep(10)
line = line.strip()
# print(line)
occ_path = os.path.dirname(basepath) + '/' + line + '/' + cron_php
if os.path.exists(occ_path):
cmd = [php, occ_path]
return_code = subprocess.call(cmd)
logging.info('occ cron call [%s %s] returned %d' % (php, occ_path, return_code))
# logging.info('occ cron call [%s] returned %d' %(cmd, return_code))
if line[0] != '#':
occ_path = os.path.dirname(basepath) + '/' + line + '/' + cron_php
if os.path.exists(occ_path):
cmd = [php, occ_path]
return_code = subprocess.call(cmd)
logging.info('occ cron call [%s %s] returned %d' % (php, occ_path, return_code))
# logging.info('occ cron call [%s] returned %d' %(cmd, return_code))
else:
logging.info('OC Instance occ cli %s doest not exist!' % (occ_path))
else:
logging.info('OC Instance occ cli %s doest not exist!' % (occ_path))
logging.info('ignoring entry [%s] ' % (line))
except IOError as e:
print("Missing occron.list")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment