Skip to content

Commit

Permalink
Upgrade to 7.2.94
Browse files Browse the repository at this point in the history
Removed certbot
  • Loading branch information
rundqvist committed Sep 20, 2022
1 parent ff0e7bf commit e6298eb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 29 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG DIST="xenial"
FROM ubuntu:${DIST}

ARG DIST
ARG UNIFI_VERSION="7.2.92-18687-1"
ARG UNIFI_VERSION="7.2.94-18697-1"
ARG MONGODB_VERSION="3.4"

RUN apt-get update && \
Expand All @@ -24,7 +24,7 @@ RUN apt-get update && \
VOLUME /config

COPY root /
RUN chmod +x /app/entrypoint.sh /app/unifi/certbot.sh
RUN chmod +x /app/entrypoint.sh

WORKDIR /home/unifi

Expand Down
12 changes: 11 additions & 1 deletion root/app/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ mkdir -p \
/var/log/{supervisord,unifi}

chown -R unifi:unifi \
/app/unifi/certbot.sh \
/config/{lib,run} \
/etc/ssl/certs \
/home/unifi \
Expand All @@ -32,6 +31,17 @@ do
ln -s /config/$f /var/$f/unifi
done

# Update certificates
#
/usr/sbin/update-ca-certificates -f > /dev/null 2>&1

if [ $? -eq 0 ]
then
echo "$(date) [INF] Certificates updated."
else
echo "$(date) [ERR] Failed to update certificates."
fi

# Start supervisor
#
exec /usr/bin/supervisord -c /app/unifi/supervisord.conf
16 changes: 0 additions & 16 deletions root/app/unifi/certbot.sh

This file was deleted.

10 changes: 0 additions & 10 deletions root/app/unifi/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,3 @@ logfile_maxbytes = 50MB
logfile = /var/log/supervisord/unifi.log
pidfile = /run/supervisord/unifi.pid
user = unifi

[program:certbot]
command = /app/unifi/certbot.sh
autorestart = true
priority = 1
startsecs = 1
stdout_logfile = /var/log/supervisord/certbot.log
logfile_maxbytes = 5MB
pidfile = /run/supervisord/certbot.pid
user = unifi

0 comments on commit e6298eb

Please sign in to comment.