mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
put_dir
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user