mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-22 06:22:16 +00:00
put_dir
This commit is contained in:
@@ -104,30 +104,19 @@ def prepare_http_host(c):
|
|||||||
def upload_https_host_files(c):
|
def upload_https_host_files(c):
|
||||||
c.sudo(f'mkdir -p {HTTP_HOST_BIN}')
|
c.sudo(f'mkdir -p {HTTP_HOST_BIN}')
|
||||||
|
|
||||||
for file in [
|
put_dir(
|
||||||
'deploy_tiles_version.py',
|
c,
|
||||||
'download_assets.py',
|
SCRIPTS_DIR / 'host',
|
||||||
'download_tiles.py',
|
HTTP_HOST_BIN,
|
||||||
'metadata_to_tilejson.py',
|
file_permissions='755',
|
||||||
'mounter.py',
|
exclude_set={'.gitignore'},
|
||||||
]:
|
)
|
||||||
put(
|
|
||||||
c,
|
|
||||||
SCRIPTS_DIR / 'http_host' / file,
|
|
||||||
HTTP_HOST_BIN,
|
|
||||||
permissions='755',
|
|
||||||
)
|
|
||||||
|
|
||||||
for file in [
|
put_dir(
|
||||||
'nginx_sync.py',
|
c,
|
||||||
'nginx_template_cf.conf',
|
SCRIPTS_DIR / 'host' / 'host_lib',
|
||||||
]:
|
f'{HTTP_HOST_BIN}/host_lib',
|
||||||
put(
|
)
|
||||||
c,
|
|
||||||
SCRIPTS_DIR / 'http_host' / 'nginx_sync' / file,
|
|
||||||
f'{HTTP_HOST_BIN}/nginx_sync/{file}',
|
|
||||||
create_parent_dir=True,
|
|
||||||
)
|
|
||||||
|
|
||||||
c.sudo('chown -R ofm:ofm /data/ofm/http_host')
|
c.sudo('chown -R ofm:ofm /data/ofm/http_host')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user