Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Commit

Permalink
fix: Message to stdout when updating cert permissions (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
lholota authored Aug 18, 2021
1 parent 9eba1ac commit 04c5aa3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN apk add --no-cache \
libffi-dev=3.3-r2 \
openssl-dev=1.1.1k-r0 \
musl-dev=1.2.2-r3 \
cargo=1.52.0-r0 \
cargo=1.52.1-r1 \
&& \
pip3 install --no-cache-dir --upgrade pip==21.1.3 && \
pip3 install --no-cache-dir \
Expand Down
4 changes: 3 additions & 1 deletion fs/cron/cron-tick
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
certbot certonly --agree-tos --non-interactive --logs-dir /logs $CERTBOT_ARGS

# Fix file permissions
echo "Updating certs ownership to $PUID:${CERTS_GID:-$PGID}"

chown "$PUID" -R /etc/letsencrypt
chgrp "${CERTS_GID:-$PGID}" -R /etc/letsencrypt
chmod "0750" -R /etc/letsencrypt

# Copy files over to /data while preserving the file permissions
cp -p /etc/letsencrypt/live/*/*.pem /data


# Output the log files to stdout
cat /logs/*
1 change: 1 addition & 0 deletions fs/etc/cont-init.d/16-file-permissions.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/with-contenv ash

echo "Updating certs ownership to $PUID:${CERTS_GID:-$PGID}"
chown "$PUID" -R /data
chgrp "${CERTS_GID:-$PGID}" -R /data
chmod "0750" -R /data

0 comments on commit 04c5aa3

Please sign in to comment.