mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
docker: adjust PHP version in apache config
Signed-off-by: nachoparker <nacho@ownyourbits.com>
This commit is contained in:
parent
21b7fe70f0
commit
cd98b50da7
11
bin/ncp-docker-hook
Normal file
11
bin/ncp-docker-hook
Normal file
@ -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
|
||||||
|
|
||||||
@ -18,8 +18,14 @@ set -e
|
|||||||
# MOVE CONFIGS TO PERSISTENT VOLUME
|
# MOVE CONFIGS TO PERSISTENT VOLUME
|
||||||
persistent_cfg /etc/apache2
|
persistent_cfg /etc/apache2
|
||||||
|
|
||||||
|
# Run hardcoded hooks. This allows scripts in the image to change persistent values before
|
||||||
|
# initialization. Use case is to download a new image.
|
||||||
|
if [[ -f /usr/local/bin/ncp-docker-hook ]]; then
|
||||||
|
source /usr/local/bin/ncp-docker-hook
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Starting PHP-fpm"
|
echo "Starting PHP-fpm"
|
||||||
php-fpm${PHPVER}
|
php-fpm"${PHPVER}"
|
||||||
|
|
||||||
echo "Starting Apache"
|
echo "Starting Apache"
|
||||||
/usr/sbin/apache2ctl start
|
/usr/sbin/apache2ctl start
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
|
|
||||||
[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/db56128) (2022-03-07) docker: adjust PHP version in apache config
|
||||||
|
|
||||||
|
[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.7 ](https://github.com/nextcloud/nextcloudpi/commit/f473f73) (2022-03-04) nc-hdd-monitor: fix Bullseye service name
|
[v1.46.7 ](https://github.com/nextcloud/nextcloudpi/commit/f473f73) (2022-03-04) nc-hdd-monitor: fix Bullseye service name
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user