diff --git a/dotfiles/.local/bin/commands b/dotfiles/.local/bin/commands index 043cbdd..9e91a50 100755 --- a/dotfiles/.local/bin/commands +++ b/dotfiles/.local/bin/commands @@ -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):