Ensure changedetection has a home dir

... to be able to install extra packages via pip
pull/722/head
jeanluc 2 months ago
parent 9ca18ff416
commit 0f425e4d99
No known key found for this signature in database
GPG Key ID: 3EB52D4C754CD898

@ -50,7 +50,7 @@ RUN set -ex; \
zlib1g && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*; \
useradd -u 911 -U -M -s /bin/false changedetection && \
useradd -u 911 -U -m -s /bin/false changedetection && \
usermod -G users changedetection; \
mkdir -p /datastore

@ -21,6 +21,7 @@ if [ "$(id -u)" = '0' -a -z "${KEEP_PRIVILEGES:-}" ]; then
# Look for files in datadir not owned by the correct user and chown them
find "$DATASTORE_PATH" \! -user changedetection -exec chown changedetection '{}' +
chown -R changedetection:changedetection ~changedetection
# Restart this script as an unprivileged user
exec gosu changedetection:changedetection "$BASH_SOURCE" "$@"

Loading…
Cancel
Save