mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 14:02:15 +00:00
start
This commit is contained in:
18
init-server.py
Executable file
18
init-server.py
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from fabric import Connection
|
||||
|
||||
from openfreemaps.kernel import setup_kernel_settings
|
||||
from openfreemaps.nginx import certbot, nginx
|
||||
|
||||
|
||||
def prepare_server(c):
|
||||
setup_kernel_settings(c)
|
||||
|
||||
nginx(c)
|
||||
certbot(c)
|
||||
|
||||
|
||||
c = Connection(host='map128')
|
||||
|
||||
prepare_server(c)
|
||||
Reference in New Issue
Block a user