diff --git a/images/unifi/Dockerfile b/images/unifi/Dockerfile index 3789b54..8de4d13 100644 --- a/images/unifi/Dockerfile +++ b/images/unifi/Dockerfile @@ -7,7 +7,8 @@ RUN set -eu &&\ cd /tmp &&\ curl -sSLO https://www.ubnt.com/downloads/unifi/${UNIFI_VERSION}/UniFi.unix.zip &&\ unzip UniFi.unix.zip &&\ - rm -f UniFi/bin/mongod + rm -f UniFi/bin/mongod &&\ + chown -R root:root UniFi FROM [[ .docker.repo ]][[ .docker.base_images.java17.image ]] MAINTAINER [[ .docker.maintainer ]] @@ -22,7 +23,6 @@ RUN set -eu &&\ apk --no-cache upgrade &&\ addgroup -g 8443 unifi &&\ adduser --system --ingroup unifi --disabled-password --uid 8443 --home /opt/unifi --shell /sbin/nologin unifi &&\ - chown -R root:root /opt/unifi &&\ mkdir -p /data/unifi &&\ mkdir -p /data/logs &&\ chown unifi:unifi /data &&\ diff --git a/variables.yml b/variables.yml index 0e382ea..79953a1 100644 --- a/variables.yml +++ b/variables.yml @@ -17,7 +17,7 @@ unifi: driver: docker # The image for the controller - image: danielberteaud/unifi:7.5.174-6 + image: danielberteaud/unifi:7.5.174-7 # Resource allocation for the controller resources: