mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-22 14:32:15 +00:00
work
This commit is contained in:
@@ -5,15 +5,8 @@ import click
|
|||||||
from dotenv import dotenv_values
|
from dotenv import dotenv_values
|
||||||
from fabric import Config, Connection
|
from fabric import Config, Connection
|
||||||
|
|
||||||
|
from ssh_lib import CONFIG_DIR, HTTP_HOST_BIN, OFM_DIR, REMOTE_CONFIG, SCRIPTS_DIR, TILE_GEN_BIN
|
||||||
from ssh_lib.benchmark import c1000k
|
from ssh_lib.benchmark import c1000k
|
||||||
from ssh_lib.config import (
|
|
||||||
CONFIG_DIR,
|
|
||||||
HTTP_HOST_BIN,
|
|
||||||
OFM_DIR,
|
|
||||||
REMOTE_CONFIG,
|
|
||||||
SCRIPTS_DIR,
|
|
||||||
TILE_GEN_BIN,
|
|
||||||
)
|
|
||||||
from ssh_lib.kernel import setup_kernel_settings
|
from ssh_lib.kernel import setup_kernel_settings
|
||||||
from ssh_lib.nginx import certbot, nginx
|
from ssh_lib.nginx import certbot, nginx
|
||||||
from ssh_lib.pkg_base import pkg_base, pkg_upgrade
|
from ssh_lib.pkg_base import pkg_base, pkg_upgrade
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
|
||||||
|
CONFIG_DIR = Path(__file__).parent.parent / 'config'
|
||||||
|
SCRIPTS_DIR = Path(__file__).parent.parent / 'scripts'
|
||||||
|
ASSETS_DIR = Path(__file__).parent / 'assets'
|
||||||
|
OFM_DIR = '/data/ofm'
|
||||||
|
REMOTE_CONFIG = '/data/ofm/config'
|
||||||
|
TILE_GEN_BIN = '/data/ofm/tile_gen/bin'
|
||||||
|
HTTP_HOST_BIN = '/data/ofm/http_host/bin'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from ssh_lib.config import SCRIPTS_DIR
|
from ssh_lib import SCRIPTS_DIR
|
||||||
from ssh_lib.utils import apt_get_install, exists, put
|
from ssh_lib.utils import apt_get_install, exists, put
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
from pathlib import Path
|
|
||||||
|
|
||||||
|
|
||||||
CONFIG_DIR = Path(__file__).parent.parent / 'config'
|
|
||||||
SCRIPTS_DIR = Path(__file__).parent.parent / 'scripts'
|
|
||||||
ASSETS_DIR = Path(__file__).parent / 'assets'
|
|
||||||
|
|
||||||
|
|
||||||
OFM_DIR = '/data/ofm'
|
|
||||||
REMOTE_CONFIG = '/data/ofm/config'
|
|
||||||
TILE_GEN_BIN = '/data/ofm/tile_gen/bin'
|
|
||||||
HTTP_HOST_BIN = '/data/ofm/http_host/bin'
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
from ssh_lib.config import ASSETS_DIR
|
from ssh_lib import ASSETS_DIR
|
||||||
from ssh_lib.utils import put
|
from ssh_lib.utils import put
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from ssh_lib.config import ASSETS_DIR
|
from ssh_lib import ASSETS_DIR
|
||||||
from ssh_lib.utils import (
|
from ssh_lib.utils import (
|
||||||
apt_get_install,
|
apt_get_install,
|
||||||
apt_get_purge,
|
apt_get_purge,
|
||||||
@@ -53,6 +53,10 @@ def nginx(c):
|
|||||||
c.sudo('service nginx restart')
|
c.sudo('service nginx restart')
|
||||||
|
|
||||||
|
|
||||||
|
def mime_types(c):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def certbot(c):
|
def certbot(c):
|
||||||
apt_get_install(c, 'snapd')
|
apt_get_install(c, 'snapd')
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
from ssh_lib.config import TILE_GEN_BIN
|
from ssh_lib import TILE_GEN_BIN
|
||||||
from ssh_lib.utils import apt_get_install, apt_get_update
|
from ssh_lib.utils import apt_get_install, apt_get_update
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user