mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 22:12:15 +00:00
work
This commit is contained in:
@@ -132,3 +132,17 @@ def make_indexes_for_bucket(bucket):
|
||||
check=True,
|
||||
input=index_str.encode(),
|
||||
)
|
||||
|
||||
|
||||
def set_version_on_bucket(area, version):
|
||||
print(f'setting version: {area} {version}')
|
||||
subprocess.run(
|
||||
[
|
||||
config.rclone_bin,
|
||||
'rcat',
|
||||
f'remote:ofm-assets/deployed_versions/{area}.txt',
|
||||
],
|
||||
env=dict(RCLONE_CONFIG=config.rclone_config),
|
||||
check=True,
|
||||
input=version.strip().encode(),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user