update
This commit is contained in:
parent
1423da361a
commit
17015f3f81
@ -50,19 +50,18 @@ RUN set -eux; \
|
||||
\
|
||||
echo "Add user for Loki"; \
|
||||
mkdir -p /data/loki; \
|
||||
addgroup -S loki; \
|
||||
adduser -h /data/loki -D -S loki -G loki; \
|
||||
addgroup -S abc; \
|
||||
adduser -u 12345 -h /data/loki -D -S abc -G abc; \
|
||||
\
|
||||
chown -R loki:loki \
|
||||
chown -R abc:abc \
|
||||
/usr/lib/nginx \
|
||||
/usr/share/nginx \
|
||||
/var/lib/nginx \
|
||||
/var/log/nginx \
|
||||
/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;\
|
||||
chmod +x /etc/services.d/loki/*; \
|
||||
chmod +x /etc/services.d/nginx/*;
|
||||
|
@ -47,5 +47,5 @@ if [ "${log_level}" == "debug" ]; then
|
||||
fi
|
||||
|
||||
bashio::log.info "Handing over control to Loki..."
|
||||
exec s6-setuidgid loki \
|
||||
exec s6-setuidgid abc \
|
||||
/usr/bin/loki "${loki_args[@]}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user