mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
work
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
"description": "Skip the full planet download, useful for testing"
|
||||
}
|
||||
},
|
||||
"required": ["domains", "servers", "skip_planet"],
|
||||
"required": ["domains", "servers"],
|
||||
"definitions": {
|
||||
"cert-upload": {
|
||||
"type": "object",
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
import os
|
||||
|
||||
import click
|
||||
import json5
|
||||
from fabric import Config, Connection
|
||||
|
||||
from ssh_lib.config import config
|
||||
@@ -79,7 +80,9 @@ def http_host_autoupdate(hostname, user, port, noninteractive):
|
||||
# prepare_shared(c)
|
||||
prepare_http_host(c)
|
||||
|
||||
run_http_host_sync(c) # disable for first install if you don't want to wait
|
||||
# for the monaco run, wait for the sync to complete
|
||||
if json5.loads(config.local_config_jsonc.read_text()).get('skip_planet'):
|
||||
run_http_host_sync(c)
|
||||
|
||||
put(c, config.local_modules_dir / 'http_host' / 'cron.d' / 'ofm_http_host', '/etc/cron.d/')
|
||||
|
||||
|
||||
@@ -18,6 +18,10 @@ def full_sync(force=False):
|
||||
assert_linux()
|
||||
assert_sudo()
|
||||
|
||||
# if it's a manual/forced run, we clean up old/deleted mounts
|
||||
if force:
|
||||
clean_up_mounts(config.mnt_dir)
|
||||
|
||||
# start
|
||||
versions_changed = fetch_version_files()
|
||||
|
||||
|
||||
@@ -4,5 +4,5 @@
|
||||
"prettier": "^3.6.2",
|
||||
"prettier-plugin-astro": "^0.14.0"
|
||||
},
|
||||
"packageManager": "pnpm@9.9.0+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1"
|
||||
"packageManager": "pnpm@10.18.2"
|
||||
}
|
||||
|
||||
@@ -13,7 +13,9 @@ def prepare_tile_gen(c, *, enable_cron):
|
||||
put_dir(c, config.local_modules_dir / 'tile_gen', config.tile_gen_bin, file_permissions='755')
|
||||
|
||||
for dirname in ['tile_gen_lib', 'scripts']:
|
||||
put_dir(c, config.local_modules_dir / 'tile_gen' / dirname, f'{config.tile_gen_bin}/{dirname}')
|
||||
put_dir(
|
||||
c, config.local_modules_dir / 'tile_gen' / dirname, f'{config.tile_gen_bin}/{dirname}'
|
||||
)
|
||||
|
||||
if (config.local_config_dir / 'rclone.conf').exists():
|
||||
put(
|
||||
|
||||
Reference in New Issue
Block a user