This commit is contained in:
Zsolt Ero
2023-12-29 18:04:02 +01:00
parent 51e9261ca2
commit d988680803
7 changed files with 19 additions and 24 deletions

View File

@@ -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'

View File

@@ -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

View File

@@ -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'

View File

@@ -1,4 +1,4 @@
from ssh_lib.config import ASSETS_DIR
from ssh_lib import ASSETS_DIR
from ssh_lib.utils import put

View File

@@ -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')

View File

@@ -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