With autopause, provide option to start knockd without sudo

This commit is contained in:
Geoff Bourne
2023-10-08 11:00:14 -05:00
parent ec539a5dd2
commit 6fce520004
6 changed files with 14 additions and 7 deletions

View File

@@ -9,14 +9,11 @@ ARG TARGETOS
ARG TARGETARCH
ARG TARGETVARIANT
# CI system should set this to a hash or git revision of the build directory and it's contents to
# ensure consistent cache updates.
ARG BUILD_FILES_REV=1
RUN --mount=target=/build,source=build \
REV=${BUILD_FILES_REV} TARGET=${TARGETARCH}${TARGETVARIANT} /build/run.sh install-packages
TARGET=${TARGETARCH}${TARGETVARIANT} /build/run.sh install-packages
RUN --mount=target=/build,source=build \
REV=${BUILD_FILES_REV} /build/run.sh setup-user
/build/run.sh setup-user
COPY --chmod=644 files/sudoers* /etc/sudoers.d