diff --git a/back/lib/ssl_peer_add b/back/lib/ssl_peer_add index bdeb2bc..a1c429e 100755 --- a/back/lib/ssl_peer_add +++ b/back/lib/ssl_peer_add @@ -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 diff --git a/back/srv/dashboard/Dockerfile b/back/srv/dashboard/Dockerfile index 81e5272..b210659 100644 --- a/back/srv/dashboard/Dockerfile +++ b/back/srv/dashboard/Dockerfile @@ -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