nginx_template

This commit is contained in:
Zsolt Ero
2023-12-29 03:49:48 +01:00
parent 4b5cc59c70
commit 3766db7df8
3 changed files with 3 additions and 3 deletions

View File

@@ -117,7 +117,7 @@ def prepare_http_host(c):
permissions='755', permissions='755',
) )
for file in ['nginx_site.conf', 'nginx_sync.py']: for file in ['nginx_template.conf', 'nginx_sync.py']:
put( put(
c, c,
SCRIPTS_DIR / 'http_host' / 'nginx_sync' / file, SCRIPTS_DIR / 'http_host' / 'nginx_sync' / file,
@@ -130,7 +130,7 @@ def prepare_http_host(c):
def debug_tmp(c): def debug_tmp(c):
for file in ['nginx_site.conf', 'nginx_sync.py']: for file in ['nginx_template.conf', 'nginx_sync.py']:
put( put(
c, c,
SCRIPTS_DIR / 'http_host' / 'nginx_sync' / file, SCRIPTS_DIR / 'http_host' / 'nginx_sync' / file,

View File

@@ -18,7 +18,7 @@ def cli():
if not Path('/mnt/ofm').exists(): if not Path('/mnt/ofm').exists():
sys.exit('mounter.py needs to be run first') sys.exit('mounter.py needs to be run first')
with open(Path(__file__).parent / 'nginx_site.conf') as fp: with open(Path(__file__).parent / 'nginx_template.conf') as fp:
nginx_template = fp.read() nginx_template = fp.read()
location_block_str = '' location_block_str = ''