[~] Refactor

This commit is contained in:
Siarhei Siniak 2024-05-19 13:50:51 +03:00
parent 9bc2752fab
commit fefee3c3ea

@ -1283,16 +1283,15 @@ server {
location_section,
))
subprocess.check_call(
r'''
exec nginx -c $CONF_DIR/nginx.conf -p $DATA_DIR -g "daemon off;"
''',
env=dict(
CONF_DIR=CONF_DIR,
DATA_DIR=DATA_DIR,
#APP_DIR=APP_DIR,
),
shell=True,
os.execv(
'nginx',
[
'nginx',
'-c',
os.path.join(CONF_DIR, 'nginx.conf'),
'-p',
'-g', 'daemon off;',
],
)
def pass_ssh_osx(argv):