Commit 6d7747fa authored by Girish Ramakrishnan's avatar Girish Ramakrishnan

make php.ini customizable

parent 1c707eb8
......@@ -40,4 +40,9 @@ RUN crudini --set /etc/php/7.3/apache2/php.ini PHP upload_max_filesize 256M && \
crudini --set /etc/php/7.3/apache2/php.ini Session session.gc_probability 1 && \
crudini --set /etc/php/7.3/apache2/php.ini Session session.gc_divisor 100
RUN cp /etc/php/7.3/apache2/php.ini /etc/php/7.3/cli/php.ini
RUN ln -s /app/data/php.ini /etc/php/7.3/apache2/conf.d/99-cloudron.ini && \
ln -s /app/data/php.ini /etc/php/7.3/cli/conf.d/99-cloudron.ini
CMD [ "/app/pkg/start.sh" ]
......@@ -12,6 +12,10 @@ if [[ ! -f /app/data/conf.php ]]; then
sed -i "s#fileupload = false#fileupload = true#" /app/data/conf.php
fi
if [[ ! -f /app/data/php.ini ]]; then
echo -e "; Add custom PHP configuration in this file\n; Settings here are merged with the package's built-in php.ini\n\n" > /app/data/php.ini
fi
echo "==> Changing permissions"
chown -R www-data:www-data /app/data/
......
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