This commit is contained in:
ahmadbilalkhalid 2019-09-10 17:35:34 +05:00
commit 0138fb3349
3 changed files with 24 additions and 1 deletions

View file

@ -39,6 +39,11 @@ def setup(path, base_dir, file_prefix, etcd_url):
sp.check_output(['pipenv','--site-packages', '--python', '3'], cwd=repo_name)
sp.check_output(['pipenv', 'install'], cwd=repo_name)
# TODO: Devuan/Debian have crontab under /etc/crontab
# while Alpine have it under /etc/crontabs/root
# Detect in the following code where should we write
# our crontab entries
# Write Crontab entry
with open("/etc/crontabs/root", "a") as crontab:
crontab.write(

View file

@ -39,6 +39,12 @@ def setup(path, base_dir, etcd_url, without_ceph):
sp.check_output(['pipenv','--site-packages', '--python', '3'], cwd=repo_name)
sp.check_output(['pipenv', 'install'], cwd=repo_name)
# TODO: Devuan/Debian have crontab under /etc/crontab
# while Alpine have it under /etc/crontabs/root
# Detect in the following code where should we write
# our crontab entries
# Write Crontab entry
with open("/etc/crontabs/root", "a") as crontab:
crontab.write(