Fixed which test to visudo

master
Keith Irwin 2022-09-10 12:07:48 -06:00
parent fb3e03d642
commit 0321cea8ca
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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