From d345c9f40fdb97886fc8b9fffa173115349bbd90 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 28 Jun 2022 22:27:29 +0200 Subject: [PATCH] fix: replace deprecated gomplate conversion --- overlay/etc/templates/config.php.tmpl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/overlay/etc/templates/config.php.tmpl b/overlay/etc/templates/config.php.tmpl index fe9ff45..08ec5b3 100644 --- a/overlay/etc/templates/config.php.tmpl +++ b/overlay/etc/templates/config.php.tmpl @@ -29,25 +29,25 @@ return array( ), 'curl_options' => array( - {{- if not (bool (getenv "FRESHRSS_CURLOPT_SSL_VERIFYHOST" "true")) }} + {{- if not (getenv "FRESHRSS_CURLOPT_SSL_VERIFYHOST" "true" | conv.ToBool) }} CURLOPT_SSL_VERIFYHOST => {{ getenv "FRESHRSS_CURLOPT_SSL_VERIFYHOST" }}, {{- end }} - {{- if not (bool (getenv "FRESHRSS_CURLOPT_SSL_VERIFYPEER" "true")) }} + {{- if not (getenv "FRESHRSS_CURLOPT_SSL_VERIFYPEER" "true" | conv.ToBool) }} CURLOPT_SSL_VERIFYPEER => {{ getenv "FRESHRSS_CURLOPT_SSL_VERIFYPEER" }}, {{- end }} - {{- if not (bool (getenv "FRESHRSS_CURLOPT_PROXYTYPE" "true")) }} + {{- if not (getenv "FRESHRSS_CURLOPT_PROXYTYPE" "true" | conv.ToBool) }} CURLOPT_PROXYTYPE => {{ getenv "FRESHRSS_CURLOPT_PROXYTYPE" }}, {{- end }} - {{- if not (bool (getenv "FRESHRSS_CURLOPT_PROXY" "true" )) }} + {{- if not (getenv "FRESHRSS_CURLOPT_PROXY" "true" | conv.ToBool ) }} CURLOPT_PROXY => '{{ getenv "FRESHRSS_CURLOPT_PROXY" }}', {{- end }} - {{- if not (bool (getenv "FRESHRSS_CURLOPT_PROXYPORT" "true" )) }} + {{- if not (getenv "FRESHRSS_CURLOPT_PROXYPORT" "true" | conv.ToBool ) }} CURLOPT_PROXYPORT => {{ getenv "FRESHRSS_CURLOPT_PROXYPORT" }}, {{- end }} - {{- if not (bool (getenv "FRESHRSS_CURLOPT_PROXYAUTH" "true" )) }} + {{- if not (getenv "FRESHRSS_CURLOPT_PROXYAUTH" "true" | conv.ToBool ) }} CURLOPT_PROXYAUTH => {{ getenv "FRESHRSS_CURLOPT_PROXYAUTH" }}, {{- end }} - {{- if not (bool (getenv "FRESHRSS_CURLOPT_PROXYUSERPWD" "true" )) }} + {{- if not (getenv "FRESHRSS_CURLOPT_PROXYUSERPWD" "true" | conv.ToBool ) }} CURLOPT_PROXYUSERPWD => '{{ getenv "FRESHRSS_CURLOPT_PROXYUSERPWD" }}', {{- end }} ),