Fix incorrect escape in sudoers file (#51)
This commit is contained in:
parent
98d6a4df6d
commit
abd25e81db
@ -25,7 +25,7 @@ FROM alpine:${ALPINE_VERSION}
|
|||||||
EXPOSE 9586/tcp
|
EXPOSE 9586/tcp
|
||||||
RUN adduser prometheus-wireguard-exporter -s /bin/sh -D -u 1000 1000 && \
|
RUN adduser prometheus-wireguard-exporter -s /bin/sh -D -u 1000 1000 && \
|
||||||
mkdir -p /etc/sudoers.d && \
|
mkdir -p /etc/sudoers.d && \
|
||||||
echo prometheus-wireguard-exporter ALL=\(root\) NOPASSWD:/usr/bin/wg show * dump > /etc/sudoers.d/prometheus-wireguard-exporter && \
|
echo 'prometheus-wireguard-exporter ALL=(root) NOPASSWD:/usr/bin/wg show * dump' > /etc/sudoers.d/prometheus-wireguard-exporter && \
|
||||||
chmod 0440 /etc/sudoers.d/prometheus-wireguard-exporter
|
chmod 0440 /etc/sudoers.d/prometheus-wireguard-exporter
|
||||||
RUN apk add --update -q --no-cache wireguard-tools-wg sudo
|
RUN apk add --update -q --no-cache wireguard-tools-wg sudo
|
||||||
USER prometheus-wireguard-exporter
|
USER prometheus-wireguard-exporter
|
||||||
|
Loading…
Reference in New Issue
Block a user