DDave
DDave

Reputation: 1543

access to folder jenkins workspace for nginx, ubuntu 17

I have a folder web that jenkins manages:

/var/lib/jenkins/workspace/myweb

*jenkins user is the owner

and from nginx I set up the default site with:

   root /var/lib/jenkins/workspace/myweb/build;

before when the site was in /var/www/html was working well, the owner

not now, how I can set up the rights for the web folder to www-data ?

Upvotes: 2

Views: 9878

Answers (1)

Mickael B.
Mickael B.

Reputation: 5215

You can use chown command this way

sudo chown www-data:www-data /var/lib/jenkins/workspace/myweb

Upvotes: 1

Related Questions