mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
cron
This commit is contained in:
@@ -134,6 +134,7 @@ def upload_http_host_config(c):
|
||||
f'{REMOTE_CONFIG}/rclone.conf',
|
||||
permissions=400,
|
||||
)
|
||||
put(c, SCRIPTS_DIR / 'http_host' / 'cron.d' / 'ofm_ledns_reader', '/etc/cron.d/')
|
||||
|
||||
|
||||
def prepare_http_host(c):
|
||||
@@ -154,10 +155,6 @@ def prepare_http_host(c):
|
||||
c.sudo('/data/ofm/venv/bin/pip install -e /data/ofm/http_host/bin')
|
||||
|
||||
|
||||
def add_http_host_cron(c):
|
||||
put(c, SCRIPTS_DIR / 'http_host' / 'cron.d' / 'ofm_http_host', '/etc/cron.d/')
|
||||
|
||||
|
||||
def run_http_host_sync(c):
|
||||
sudo_cmd(c, '/data/ofm/venv/bin/python -u /data/ofm/http_host/bin/host_manager.py sync')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user