add sudo to script, add redirect log for node app