This commit is contained in:
ai-dev 2024-11-09 07:44:27 +01:00
parent 1423da361a
commit 17015f3f81
2 changed files with 6 additions and 7 deletions

View File

@ -50,19 +50,18 @@ RUN set -eux; \
\ \
echo "Add user for Loki"; \ echo "Add user for Loki"; \
mkdir -p /data/loki; \ mkdir -p /data/loki; \
addgroup -S loki; \ addgroup -S abc; \
adduser -h /data/loki -D -S loki -G loki; \ adduser -u 12345 -h /data/loki -D -S abc -G abc; \
\ \
chown -R loki:loki \ chown -R abc:abc \
/usr/lib/nginx \ /usr/lib/nginx \
/usr/share/nginx \ /usr/share/nginx \
/var/lib/nginx \ /var/lib/nginx \
/var/log/nginx \ /var/log/nginx \
/data/loki \ /data/loki \
;\ ;
chmod -R 777 /data/loki;
COPY --chown=loki:loki rootfs / COPY --chown=abc:abc rootfs /
RUN chmod +x /etc/cont-init.d/nginx.sh;\ RUN chmod +x /etc/cont-init.d/nginx.sh;\
chmod +x /etc/services.d/loki/*; \ chmod +x /etc/services.d/loki/*; \
chmod +x /etc/services.d/nginx/*; chmod +x /etc/services.d/nginx/*;

View File

@ -47,5 +47,5 @@ if [ "${log_level}" == "debug" ]; then
fi fi
bashio::log.info "Handing over control to Loki..." bashio::log.info "Handing over control to Loki..."
exec s6-setuidgid loki \ exec s6-setuidgid abc \
/usr/bin/loki "${loki_args[@]}" /usr/bin/loki "${loki_args[@]}"