I must be doing something wrong how does the script run sudo commands?

I've added what i can to the sudo visudo file, but can't get the sed for

```

sudo sed -i 's/server 127\.0\.0\.1\:.*/server 127.0.0.1:'$open_port\;'/g' /etc/nginx/sites-available/builtwithphoenix.com

```

to work!

```

23:30:29.835 [info] Migrations already up

Updating NGINX config...

sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper

sudo: a password is required

```

Mykolas Mankevicius
Mykolas Mankevicius

Responses (1)