mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
work
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -5,7 +5,7 @@
|
|||||||
*.mbtiles
|
*.mbtiles
|
||||||
*.pbf
|
*.pbf
|
||||||
|
|
||||||
.env
|
config/.env
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
/venv
|
/venv
|
||||||
|
|||||||
1
config/.env.sample
Normal file
1
config/.env.sample
Normal file
@@ -0,0 +1 @@
|
|||||||
|
SSH_PASSWD=x
|
||||||
@@ -6,7 +6,7 @@ from dotenv import dotenv_values
|
|||||||
from fabric import Config, Connection
|
from fabric import Config, Connection
|
||||||
|
|
||||||
from ssh_lib.benchmark import benchmark, c1000k
|
from ssh_lib.benchmark import benchmark, c1000k
|
||||||
from ssh_lib.config import assets_dir, scripts_dir
|
from ssh_lib.config import assets_dir, config_dir, scripts_dir
|
||||||
from ssh_lib.kernel import set_cpu_governor, setup_kernel_settings
|
from ssh_lib.kernel import set_cpu_governor, 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
|
||||||
@@ -106,7 +106,7 @@ def main(hostname, user, port, tile_gen, http_host, skip_shared, do_reboot, debu
|
|||||||
if not tile_gen and not http_host:
|
if not tile_gen and not http_host:
|
||||||
return
|
return
|
||||||
|
|
||||||
ssh_passwd = dotenv_values('.env').get('SSH_PASSWD')
|
ssh_passwd = dotenv_values(f'{config_dir}/.env').get('SSH_PASSWD')
|
||||||
|
|
||||||
if ssh_passwd:
|
if ssh_passwd:
|
||||||
c = Connection(
|
c = Connection(
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import shutil
|
|||||||
import sqlite3
|
import sqlite3
|
||||||
import sys
|
import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from pprint import pprint
|
|
||||||
|
|
||||||
import click
|
import click
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user