Allow wg-quick to save wireguard config
parent
4ab1f9a573
commit
f8a95a21dc
|
@ -19,7 +19,7 @@ RUN sed -i -e "s/^<VirtualHost \*:80>$/<VirtualHost *:${PORT}>/" \
|
|||
/etc/apache2/sites-available/000-default.conf
|
||||
|
||||
# Allow http user to run these binaries as root with sudo
|
||||
RUN echo "www-data ALL=(ALL:ALL) NOPASSWD: /usr/bin/wg, /usr/bin/openssl, /usr/bin/[, /usr/bin/tee, /bin/cat, /bin/mkdir, /bin/rm, /bin/chmod, /bin/chgrp" \
|
||||
RUN echo "www-data ALL=(ALL:ALL) NOPASSWD: /usr/bin/wg, /usr/bin/wg-quick, /usr/bin/openssl, /usr/bin/[, /usr/bin/tee, /bin/cat, /bin/mkdir, /bin/rm, /bin/chmod, /bin/chgrp" \
|
||||
| sudo EDITOR='tee -a' visudo
|
||||
|
||||
# Copy over CGIs and libs
|
||||
|
|
Loading…
Reference in New Issue