From fe25cac45bd8071b2d97c0ba1e66048b98e71753 Mon Sep 17 00:00:00 2001 From: nachoparker Date: Mon, 7 Mar 2022 10:17:20 -0700 Subject: [PATCH] docker: adjust PHP version in apache config Signed-off-by: nachoparker --- build/docker/lamp/010lamp | 10 +++++++++- changelog.md | 8 +++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/build/docker/lamp/010lamp b/build/docker/lamp/010lamp index ca55dd6ef..3197c2156 100755 --- a/build/docker/lamp/010lamp +++ b/build/docker/lamp/010lamp @@ -18,8 +18,16 @@ set -e # MOVE CONFIGS TO PERSISTENT VOLUME persistent_cfg /etc/apache2 +# adjust PHP version (in case of php upgrade) +if php --version | grep -q v7.4 && [[ -f /data/etc/apache2/conf-available/php7.3-fpm.conf ]]; then + a2disconf php7.3-fpm + mv /data/etc/apache2/conf-available/php7.{3,4}-fpm.conf + sed -i 's|php7.3|php7.4|g' /data/etc/apache2/conf-available/php7.4-fpm.conf + a2enconf php7.4-fpm +fi + echo "Starting PHP-fpm" -php-fpm${PHPVER} +php-fpm"${PHPVER}" echo "Starting Apache" /usr/sbin/apache2ctl start diff --git a/changelog.md b/changelog.md index f99779fe5..5078ff48f 100644 --- a/changelog.md +++ b/changelog.md @@ -1,9 +1,11 @@ -[v1.46.8](https://github.com/nextcloud/nextcloudpi/commit/dc7046b) (2022-03-04) SSH: cannot check for default password because of Debian bug #1003151 +[v1.46.9](https://github.com/nextcloud/nextcloudpi/commit/5559416) (2022-03-07) docker: adjust PHP version in apache config -[v1.46.7](https://github.com/nextcloud/nextcloudpi/commit/f473f73) (2022-03-04) nc-hdd-monitor: fix Bullseye service name +[v1.46.8 ](https://github.com/nextcloud/nextcloudpi/commit/21b7fe7) (2022-03-04) SSH: cannot check for default password because of Debian bug #1003151 -[v1.46.6](https://github.com/nextcloud/nextcloudpi/commit/c9610e4) (2022-03-03) ncp-dist-upgrade: fix VM grub-pc issue +[v1.46.7 ](https://github.com/nextcloud/nextcloudpi/commit/f473f73) (2022-03-04) nc-hdd-monitor: fix Bullseye service name + +[v1.46.6 ](https://github.com/nextcloud/nextcloudpi/commit/c9610e4) (2022-03-03) ncp-dist-upgrade: fix VM grub-pc issue [v1.46.5 ](https://github.com/nextcloud/nextcloudpi/commit/062c803) (2022-03-02) ncp-dist-upgrade: add DHCP fix for raspios