mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
work
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from ssh_lib.config import ASSETS_DIR
|
||||
from ssh_lib import ASSETS_DIR
|
||||
from ssh_lib.utils import (
|
||||
apt_get_install,
|
||||
apt_get_purge,
|
||||
@@ -53,6 +53,10 @@ def nginx(c):
|
||||
c.sudo('service nginx restart')
|
||||
|
||||
|
||||
def mime_types(c):
|
||||
pass
|
||||
|
||||
|
||||
def certbot(c):
|
||||
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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user