Added back freshclam privelege fix

This commit is contained in:
tabledevil
2024-02-01 14:36:07 +01:00
parent c4081cd5fd
commit ce44b9564e

View File

@@ -22,6 +22,9 @@ RUN chmod +x /start.sh
#customize clamav config #customize clamav config
RUN sed -ie 's/#DetectPUA yes/DetectPUA yes/p' /etc/clamav/clamd.conf RUN sed -ie 's/#DetectPUA yes/DetectPUA yes/p' /etc/clamav/clamd.conf
RUN sed -ie 's/#AlertOLE2Macros yes/AlertOLE2Macros yes/p' /etc/clamav/clamd.conf RUN sed -ie 's/#AlertOLE2Macros yes/AlertOLE2Macros yes/p' /etc/clamav/clamd.conf
#
RUN chown root /usr/bin/freshclam
RUN chmod u+s /usr/bin/freshclam
#add user #add user
RUN addgroup -g ${PGID} user && \ RUN addgroup -g ${PGID} user && \
adduser -D -u ${PUID} -G user user adduser -D -u ${PUID} -G user user