Преглед изворни кода

Disable built-in update when using Docker (#3496)

#fix https://github.com/FreshRSS/FreshRSS/issues/3495
Alexandre Alapetite пре 5 година
родитељ
комит
27c4194c8e
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      Docker/entrypoint.sh

+ 3 - 0
Docker/entrypoint.sh

@@ -6,6 +6,9 @@ find /etc/php*/ -type f -name php.ini -exec sed -r -i "\\#^;?date.timezone#s#^.*
 find /etc/php*/ -type f -name php.ini -exec sed -r -i "\\#^;?post_max_size#s#^.*#post_max_size = 32M#" {} \;
 find /etc/php*/ -type f -name php.ini -exec sed -r -i "\\#^;?post_max_size#s#^.*#post_max_size = 32M#" {} \;
 find /etc/php*/ -type f -name php.ini -exec sed -r -i "\\#^;?upload_max_filesize#s#^.*#upload_max_filesize = 32M#" {} \;
 find /etc/php*/ -type f -name php.ini -exec sed -r -i "\\#^;?upload_max_filesize#s#^.*#upload_max_filesize = 32M#" {} \;
 
 
+# Disable built-in updates when using Docker, as the full image is supposed to be updated instead.
+sed -r -i "\\#disable_update#s#^.*#\t'disable_update' => true,#" ./config.default.php
+
 if [ -n "$LISTEN" ]; then
 if [ -n "$LISTEN" ]; then
 	find /etc/apache2/ -type f -name FreshRSS.Apache.conf -exec sed -r -i "\\#^Listen#s#^.*#Listen $LISTEN#" {} \;
 	find /etc/apache2/ -type f -name FreshRSS.Apache.conf -exec sed -r -i "\\#^Listen#s#^.*#Listen $LISTEN#" {} \;
 fi
 fi