mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
work
This commit is contained in:
@@ -2,4 +2,4 @@ from pathlib import Path
|
||||
|
||||
|
||||
base = Path(__file__).parent.parent
|
||||
templates = base / 'templates'
|
||||
config = base / 'config'
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
from ssh_lib.config import templates
|
||||
from ssh_lib.config import config
|
||||
from ssh_lib.utils import apt_get_install, apt_get_purge, put, put_str
|
||||
|
||||
|
||||
def setup_kernel_settings(c):
|
||||
put(c, f'{templates}/sysctl/60-optim.conf', '/etc/sysctl.d/')
|
||||
put(c, f'{config}/sysctl/60-optim.conf', '/etc/sysctl.d/')
|
||||
|
||||
|
||||
def set_cpu_governor(c):
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from ssh_lib.config import templates
|
||||
from ssh_lib.config import config
|
||||
from ssh_lib.utils import (
|
||||
apt_get_install,
|
||||
apt_get_purge,
|
||||
@@ -43,9 +43,9 @@ def nginx(c):
|
||||
'-subj "/C=US/ST=Dummy/L=Dummy/O=Dummy/CN=example.com"'
|
||||
)
|
||||
|
||||
put(c, f'{templates}/nginx/nginx.conf', '/etc/nginx/')
|
||||
put(c, f'{templates}/nginx/default_disable.conf', '/data/nginx/sites')
|
||||
put(c, f'{templates}/nginx/cloudflare.conf', '/data/nginx/config')
|
||||
put(c, f'{config}/nginx/nginx.conf', '/etc/nginx/')
|
||||
put(c, f'{config}/nginx/default_disable.conf', '/data/nginx/sites')
|
||||
put(c, f'{config}/nginx/cloudflare.conf', '/data/nginx/config')
|
||||
|
||||
c.sudo('service nginx restart')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user