diff --git a/init-server.py b/init-server.py index 2ffd51f..c56b632 100755 --- a/init-server.py +++ b/init-server.py @@ -117,7 +117,7 @@ def prepare_http_host(c): permissions='755', ) - for file in ['nginx_site.conf', 'nginx_sync.py']: + for file in ['nginx_template.conf', 'nginx_sync.py']: put( c, SCRIPTS_DIR / 'http_host' / 'nginx_sync' / file, @@ -130,7 +130,7 @@ def prepare_http_host(c): def debug_tmp(c): - for file in ['nginx_site.conf', 'nginx_sync.py']: + for file in ['nginx_template.conf', 'nginx_sync.py']: put( c, SCRIPTS_DIR / 'http_host' / 'nginx_sync' / file, diff --git a/scripts/http_host/nginx_sync/nginx_sync.py b/scripts/http_host/nginx_sync/nginx_sync.py index 38e1e6f..d063826 100755 --- a/scripts/http_host/nginx_sync/nginx_sync.py +++ b/scripts/http_host/nginx_sync/nginx_sync.py @@ -18,7 +18,7 @@ def cli(): if not Path('/mnt/ofm').exists(): 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() location_block_str = '' diff --git a/scripts/http_host/nginx_sync/nginx_site.conf b/scripts/http_host/nginx_sync/nginx_template.conf similarity index 100% rename from scripts/http_host/nginx_sync/nginx_site.conf rename to scripts/http_host/nginx_sync/nginx_template.conf