Commit 787084eb authored by zauberstuhl's avatar zauberstuhl
Browse files

Patch cron script for docker secrets in friendica image

parent c3590537
Pipeline #2156 passed with stages
in 3 minutes and 4 seconds
FROM friendica/server:stable
COPY docker-entrypoint.patch /tmp/
COPY *.patch /tmp/
COPY env_secrets_expand.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/env_secrets_expand.sh
RUN patch /entrypoint.sh </tmp/docker-entrypoint.patch
RUN patch /cron.sh </tmp/cron.patch
RUN rm /tmp/docker-entrypoint.patch
ENTRYPOINT ["/entrypoint.sh"]
......
--- /cron.sh 2019-08-04 21:14:11.000000000 +0000
+++ /cron.sh 2019-08-17 14:59:51.981455213 +0000
@@ -1,4 +1,8 @@
#!/bin/sh
+
+# parse docker environment secrets
+. /usr/local/bin/env_secrets_expand.sh
+
trap "break;exit" HUP INT TERM
while [ ! -f /var/www/html/config/local.ini.php ] && [ ! -f /var/www/html/config/local.config.php ]; do
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment