File tree 3 files changed +23
-4
lines changed 3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change
1
+ # Here we have the opportunity to make changes in the persistent volume configuration before
2
+ # anything is started, after pulling a new image
3
+
4
+ # adjust PHP version (in case of php upgrade)
5
+ if php --version | grep -q v7.4 && [[ -f /data/etc/apache2/conf-available/php7.3-fpm.conf ]]; then
6
+ a2disconf php7.3-fpm
7
+ mv /data/etc/apache2/conf-available/php7.{3,4}-fpm.conf
8
+ sed -i 's|php7.3|php7.4|g' /data/etc/apache2/conf-available/php7.4-fpm.conf
9
+ a2enconf php7.4-fpm
10
+ fi
11
+
Original file line number Diff line number Diff line change @@ -18,8 +18,14 @@ set -e
18
18
# MOVE CONFIGS TO PERSISTENT VOLUME
19
19
persistent_cfg /etc/apache2
20
20
21
+ # Run hardcoded hooks. This allows scripts in the image to change persistent values before
22
+ # initialization. Use case is to download a new image.
23
+ if [[ -f /usr/local/bin/ncp-docker-hook ]]; then
24
+ source /usr/local/bin/ncp-docker-hook
25
+ fi
26
+
21
27
echo " Starting PHP-fpm"
22
- php-fpm${PHPVER}
28
+ php-fpm" ${PHPVER} "
23
29
24
30
echo " Starting Apache"
25
31
/usr/sbin/apache2ctl start
Original file line number Diff line number Diff line change 1
1
2
- [ v1.46.8 ] ( https://github.com/nextcloud/nextcloudpi/commit/dc7046b ) (2022-03-04) SSH: cannot check for default password because of Debian bug # 1003151
2
+ [ v1.46.9 ] ( https://github.com/nextcloud/nextcloudpi/commit/db56128 ) (2022-03-07) docker: adjust PHP version in apache config
3
3
4
- [ v1.46.7 ] ( https://github.com/nextcloud/nextcloudpi/commit/f473f73 ) (2022-03-04) nc-hdd-monitor: fix Bullseye service name
4
+ [ v1.46.8 ] ( https://github.com/nextcloud/nextcloudpi/commit/21b7fe7 ) (2022-03-04) SSH: cannot check for default password because of Debian bug # 1003151
5
5
6
- [ v1.46.6] ( https://github.com/nextcloud/nextcloudpi/commit/c9610e4 ) (2022-03-03) ncp-dist-upgrade: fix VM grub-pc issue
6
+ [ v1.46.7 ] ( https://github.com/nextcloud/nextcloudpi/commit/f473f73 ) (2022-03-04) nc-hdd-monitor: fix Bullseye service name
7
+
8
+ [ v1.46.6 ] ( https://github.com/nextcloud/nextcloudpi/commit/c9610e4 ) (2022-03-03) ncp-dist-upgrade: fix VM grub-pc issue
7
9
8
10
[ v1.46.5 ] ( https://github.com/nextcloud/nextcloudpi/commit/062c803 ) (2022-03-02) ncp-dist-upgrade: add DHCP fix for raspios
9
11
You can’t perform that action at this time.
0 commit comments