This commit is contained in:
Zsolt Ero
2024-01-03 14:23:56 +01:00
parent 7b85483993
commit efaebb1b3c

View File

@@ -104,30 +104,19 @@ def prepare_http_host(c):
def upload_https_host_files(c):
c.sudo(f'mkdir -p {HTTP_HOST_BIN}')
for file in [
'deploy_tiles_version.py',
'download_assets.py',
'download_tiles.py',
'metadata_to_tilejson.py',
'mounter.py',
]:
put(
c,
SCRIPTS_DIR / 'http_host' / file,
HTTP_HOST_BIN,
permissions='755',
)
put_dir(
c,
SCRIPTS_DIR / 'host',
HTTP_HOST_BIN,
file_permissions='755',
exclude_set={'.gitignore'},
)
for file in [
'nginx_sync.py',
'nginx_template_cf.conf',
]:
put(
c,
SCRIPTS_DIR / 'http_host' / 'nginx_sync' / file,
f'{HTTP_HOST_BIN}/nginx_sync/{file}',
create_parent_dir=True,
)
put_dir(
c,
SCRIPTS_DIR / 'host' / 'host_lib',
f'{HTTP_HOST_BIN}/host_lib',
)
c.sudo('chown -R ofm:ofm /data/ofm/http_host')