This commit is contained in:
Zsolt Ero
2024-01-02 19:43:42 +01:00
parent 9bb2c07818
commit 4803730d80
3 changed files with 17 additions and 5 deletions

View File

@@ -131,14 +131,15 @@ def upload_https_host_files(c):
create_parent_dir=True,
)
put(c, SCRIPTS_DIR / 'http_host' / 'cron.d' / 'ofm_http_host', '/etc/cron.d/')
c.sudo('chown -R ofm:ofm /data/ofm/http_host')
c.sudo('rm -rf /data/ofm/http_host/logs')
c.sudo('mkdir -p /data/ofm/http_host/logs')
c.sudo('chown root:root /data/ofm/http_host/logs')
# always last
put(c, SCRIPTS_DIR / 'http_host' / 'cron.d' / 'ofm_http_host', '/etc/cron.d/')
def upload_certificates(c):
for file in (CONFIG_DIR / 'certs').iterdir():
@@ -158,7 +159,7 @@ def debug_tmp(c):
# upload_https_host_files(c)
for file in [
'deploy_tiles_version.py',
'mounter.py',
]:
put(
c,