no patch any more, we want the CA.crt

This commit is contained in:
2021-05-05 13:15:24 +02:00
parent 0e13b3446a
commit 219c25f8f4
2 changed files with 8 additions and 7 deletions

View File

@@ -1,9 +1,9 @@
FROM nextcloud:stable-apache
#patch curl wrapper
RUN sed -i '/\[CURLOPT_HEADERFUNCTION\].*$/a $conf[CURLOPT_SSL_VERIFYPEER] = false;' /usr/src/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php; \
cat /usr/src/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php; \
touch /usr/src/nextcloud/data/.ocdata
#RUN sed -i '/\[CURLOPT_HEADERFUNCTION\].*$/a $conf[CURLOPT_SSL_VERIFYPEER] = false;' /usr/src/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php; \
# cat /usr/src/nextcloud/3rdparty/guzzlehttp/guzzle/src/Handler/CurlFactory.php; \
RUN touch /usr/src/nextcloud/data/.ocdata
COPY config.php /usr/src/nextcloud/config/
COPY post-start.sh /usr/local/bin/post-start.sh
CMD chmod +x /usr/local/bin/post-start.sh

View File

@@ -24,10 +24,11 @@ spec:
containers:
- name: nextcloud
image: cr.lan/nextcloud
lifecycle:
postStart:
exec:
command: ["/bin/sh", "-c", "/usr/local/bin/post-start.sh"]
#lifecycle:
# postStart:
# exec:
# command:
# - /usr/local/bin/post-start.sh
env:
- name: TZ
value: "Europe/Berlin"