framadate : tentative fix 2

This commit is contained in:
Gitouche 2023-10-26 18:46:38 +02:00
parent a916ddf744
commit 197b9b2288

View file

@ -28,6 +28,7 @@ WORKDIR /var/www/framadate
RUN git clone -b $version --depth=1 https://framagit.org/framasoft/framadate/framadate.git . \ RUN git clone -b $version --depth=1 https://framagit.org/framasoft/framadate/framadate.git . \
&& sed -i -e 's|"smarty/smarty": "^4.0",|"smarty/smarty": "^4.3",|' /var/www/framadate/composer.json \ && sed -i -e 's|"smarty/smarty": "^4.0",|"smarty/smarty": "^4.3",|' /var/www/framadate/composer.json \
&& sed -i -e 's|isset($admin)|isset($admin) \&\& $admin|g' /var/www/framadate/tpl/part/comments_list.tpl \
&& chown -R 33:33 . \ && chown -R 33:33 . \
&& if [ "$ENV" = "dev" ] ; then echo Using PHP production mode ; else echo Using PHP development mode && echo "error_reporting = E_ERROR | E_WARNING | E_PARSE\ndisplay_errors = On" > /usr/local/etc/php/conf.d/php.ini ; fi \ && if [ "$ENV" = "dev" ] ; then echo Using PHP production mode ; else echo Using PHP development mode && echo "error_reporting = E_ERROR | E_WARNING | E_PARSE\ndisplay_errors = On" > /usr/local/etc/php/conf.d/php.ini ; fi \
&& rm /etc/apache2/sites-enabled/000-default.conf && rm /etc/apache2/sites-enabled/000-default.conf