Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2022-03-07 20:17:20 +0300
committernachoparker <nacho@ownyourbits.com>2022-03-07 21:36:27 +0300
commitcd98b50da7b3f7f840d264e87c51533fd1d10f4c (patch)
treedf1c2379805469b1d2058aeb7ae386707cd16d50 /bin/ncp-docker-hook
parent21b7fe70f0c64a3cd20f08afed072832a43f21e0 (diff)
docker: adjust PHP version in apache configv1.46.9
Signed-off-by: nachoparker <nacho@ownyourbits.com>
Diffstat (limited to 'bin/ncp-docker-hook')
-rw-r--r--bin/ncp-docker-hook11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/ncp-docker-hook b/bin/ncp-docker-hook
new file mode 100644
index 00000000..eb288f71
--- /dev/null
+++ b/bin/ncp-docker-hook
@@ -0,0 +1,11 @@
+# Here we have the opportunity to make changes in the persistent volume configuration before
+# anything is started, after pulling a new image
+
+# 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
+