3 ms·
the best way to do it would be to change you sudoers config so your task can do that without a password run visudo and add the following line: [user]
by lsc 19y ago
the best way to do it would be to change you sudoers config so your task can do that without a password
run visudo and add the following line:
[user] ALL=(root) NOPASSWD:/bin/chown /path/to/apache
/path/to/apache should be the directory above your latest_release dir so you can avoid a wildcard