This commit is contained in:
ahmadbilalkhalid 2019-08-31 00:34:10 +05:00
parent a64b411ad4
commit fd1f54c1e1
2 changed files with 2 additions and 2 deletions

View file

@ -56,5 +56,5 @@ def setup(path, base_dir, file_prefix, etcd_url, etcd_password):
# Write Crontab entry # Write Crontab entry
with open("/etc/crontabs/root", "a") as crontab: with open("/etc/crontabs/root", "a") as crontab:
crontab.write( crontab.write(
f"*/5\t*\t*\t*\t*\tcd {os.path.join(os.getcwd(), repo_name)} && pipenv run python main.py" f"*/1\t*\t*\t*\t*\t$(cd {os.path.join(os.getcwd(), repo_name)} && pipenv run python main.py)\n"
) )

View file

@ -54,5 +54,5 @@ def setup(path, base_dir, etcd_url, etcd_password):
# Write Crontab entry # Write Crontab entry
with open("/etc/crontabs/root", "a") as crontab: with open("/etc/crontabs/root", "a") as crontab:
crontab.write( crontab.write(
f"*/5\t*\t*\t*\t*\tcd {os.path.join(os.getcwd(), repo_name)} && pipenv run python main.py" f"*/1\t*\t*\t*\t*\t$(cd {os.path.join(os.getcwd(), repo_name)} && pipenv run python main.py)\n"
) )