diff options
author | Mike Crute <mike@crute.us> | 2019-02-08 04:20:20 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2019-02-08 04:20:20 +0000 |
commit | 184ca10ca9b2e7fde9d9abaa0ab9b7ebb3c42846 (patch) | |
tree | 1f17310ad271b6395b50a9ecbb17bfaf9efc4aa7 /unifi-video | |
parent | bee97f4e490ebb89f45325c5d757ac18de9c54e8 (diff) | |
download | dockerfiles-184ca10ca9b2e7fde9d9abaa0ab9b7ebb3c42846.tar.bz2 dockerfiles-184ca10ca9b2e7fde9d9abaa0ab9b7ebb3c42846.tar.xz dockerfiles-184ca10ca9b2e7fde9d9abaa0ab9b7ebb3c42846.zip |
Upgrade unifi-video to 3.10.1
Diffstat (limited to 'unifi-video')
-rw-r--r-- | unifi-video/Dockerfile | 2 | ||||
-rw-r--r-- | unifi-video/Makefile | 4 | ||||
-rwxr-xr-x | unifi-video/entrypoint.sh | 9 |
3 files changed, 9 insertions, 6 deletions
diff --git a/unifi-video/Dockerfile b/unifi-video/Dockerfile index bf36953..a2481c0 100644 --- a/unifi-video/Dockerfile +++ b/unifi-video/Dockerfile | |||
@@ -1,4 +1,4 @@ | |||
1 | FROM frolvlad/alpine-oraclejdk8:slim | 1 | FROM frolvlad/alpine-oraclejdk8-temporary:slim |
2 | LABEL maintainer="Mike Crute <mike@crute.us>" | 2 | LABEL maintainer="Mike Crute <mike@crute.us>" |
3 | 3 | ||
4 | ARG dl_url | 4 | ARG dl_url |
diff --git a/unifi-video/Makefile b/unifi-video/Makefile index 5cad6a1..d2b9fea 100644 --- a/unifi-video/Makefile +++ b/unifi-video/Makefile | |||
@@ -1,6 +1,6 @@ | |||
1 | VERSION=3.9.12-alpine | 1 | VERSION=3.10.1 |
2 | IMAGE=docker.crute.me/unifi-video | 2 | IMAGE=docker.crute.me/unifi-video |
3 | DL_URL="https://dl.ubnt.com/firmwares/ufv/v3.9.12/unifi-video.Ubuntu16.04_amd64.v3.9.12.deb" | 3 | DL_URL="https://dl.ubnt.com/firmwares/unifi-video/v3.10.1/unifi-video.Ubuntu16.04_amd64.v3.10.1.deb" |
4 | 4 | ||
5 | all: | 5 | all: |
6 | docker build \ | 6 | docker build \ |
diff --git a/unifi-video/entrypoint.sh b/unifi-video/entrypoint.sh index f4974c4..ceb4dba 100755 --- a/unifi-video/entrypoint.sh +++ b/unifi-video/entrypoint.sh | |||
@@ -20,18 +20,21 @@ fi | |||
20 | cd ${BASEDIR} | 20 | cd ${BASEDIR} |
21 | 21 | ||
22 | # Create the user and group if they don't exist | 22 | # Create the user and group if they don't exist |
23 | if ! grep "^${USERNAME}:" /etc/group 2>&1>/dev/null; then | 23 | if ! grep "^${USERNAME}:" /etc/group &>/dev/null; then |
24 | addgroup -g ${UNIFI_GID} -S ${USERNAME} | 24 | addgroup -g ${UNIFI_GID} -S ${USERNAME} |
25 | fi | 25 | fi |
26 | if ! grep "^${USERNAME}:" /etc/passwd 2>&1>/dev/null; then | 26 | if ! grep "^${USERNAME}:" /etc/passwd &>/dev/null; then |
27 | adduser -u ${UNIFI_UID} -S -h /var/lib/${USERNAME} -H -D -G ${USERNAME} ${USERNAME} | 27 | adduser -u ${UNIFI_UID} -S -h /var/lib/${USERNAME} -H -D -G ${USERNAME} ${USERNAME} |
28 | fi | 28 | fi |
29 | 29 | ||
30 | mkdir -p /var/log/mongodb/logs | ||
31 | |||
30 | # Update permissions on the root directories | 32 | # Update permissions on the root directories |
31 | chown ${USERNAME}:${USERNAME} \ | 33 | chown ${USERNAME}:${USERNAME} \ |
32 | /var/run/unifi-video \ | 34 | /var/run/unifi-video \ |
33 | /var/log/unifi-video \ | 35 | /var/log/unifi-video \ |
34 | /var/lib/unifi-video | 36 | /var/lib/unifi-video \ |
37 | /var/log/mongodb/logs | ||
35 | 38 | ||
36 | chown -R ${USERNAME}:${USERNAME} \ | 39 | chown -R ${USERNAME}:${USERNAME} \ |
37 | /usr/lib/unifi-video/conf/evostream \ | 40 | /usr/lib/unifi-video/conf/evostream \ |