mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
work
This commit is contained in:
@@ -38,11 +38,14 @@ def pkg_base(c):
|
||||
pkg_list = [
|
||||
'wget',
|
||||
'gpg',
|
||||
'git',
|
||||
'gnupg-agent',
|
||||
'python3',
|
||||
'nload',
|
||||
'iftop',
|
||||
'snapd',
|
||||
#
|
||||
'python3',
|
||||
'python3-venv',
|
||||
]
|
||||
|
||||
apt_get_install(c, ' '.join(pkg_list))
|
||||
|
||||
@@ -3,8 +3,8 @@ from ssh_lib.utils import apt_get_install, apt_get_update
|
||||
|
||||
PLANETILER_VERSION = '0.7.0'
|
||||
|
||||
PLANETILER_DIR = '/data/planetiler/bin'
|
||||
PLANETILER_PATH = f'{PLANETILER_DIR}/planetiler.jar'
|
||||
TILE_GEN_BIN = '/data/ofm/tile_gen/bin'
|
||||
PLANETILER_PATH = f'{TILE_GEN_BIN}/planetiler.jar'
|
||||
|
||||
|
||||
def install_planetiler(c):
|
||||
|
||||
@@ -36,9 +36,9 @@ def append_str(c, remote_path, str_):
|
||||
c.sudo(f'rm -f {tmp_path}')
|
||||
|
||||
|
||||
def sudo_cmd(c, cmd):
|
||||
def sudo_cmd(c, cmd, user=None):
|
||||
cmd = cmd.replace('"', '\\"')
|
||||
c.sudo(f'bash -c "{cmd}"')
|
||||
c.sudo(f'bash -c "{cmd}"', user=user)
|
||||
|
||||
|
||||
def set_permission(c, path, permissions=None, owner=None, group=None):
|
||||
|
||||
Reference in New Issue
Block a user