Fixed which test to visudo
parent
fb3e03d642
commit
0321cea8ca
|
@ -35,7 +35,6 @@ username="${2}"
|
|||
ipstring="${3}"
|
||||
|
||||
printf 'Signing SSL certs for %s.%s.%s...\n' "${hostname}" "${username}" "${TLD}" >>"${LOGFILE}"
|
||||
which [ >>"${LOGFILE}"
|
||||
|
||||
# Make a directory for the new files
|
||||
if ! sudo mkdir "${SSL_CONFIG_DIR:?}/${username:?}/${hostname:?}/" >>"${LOGFILE}" 2>/dev/null; then
|
||||
|
|
|
@ -21,7 +21,7 @@ RUN sed -i "s|DocumentRoot .*$|DocumentRoot /var/www/cgi-bin\n\tScriptAlias / /v
|
|||
/etc/apache2/sites-available/000-default.conf
|
||||
|
||||
# Allow http to run these binaries as root with sudo
|
||||
RUN echo "www-data ALL=(ALL:ALL) NOPASSWD: /usr/bin/wg, /usr/bin/openssl, /bin/[, /bin/mkdir, /bin/rm, /bin/chmod" \
|
||||
RUN echo "www-data ALL=(ALL:ALL) NOPASSWD: /usr/bin/wg, /usr/bin/openssl, /usr/bin/[, /bin/mkdir, /bin/rm, /bin/chmod" \
|
||||
| sudo EDITOR='tee -a' visudo
|
||||
|
||||
# Create temporary files
|
||||
|
|
Loading…
Reference in New Issue