Skip to content

Commit 2851515

Browse files
committed
dietpi-bookworm-upgrade: reinstall Lighttpd to enable correct config
Some older DietPi versions altered and used 15-fastcgi-php.conf with versioned PHP-FPM socket path, which needed to be updated. In the meantime, there is 15-fastcgi-php-fpm.conf, which uses the non-versioned PHP-FPM socket symlink, and which DietPi uses now. Reinstall Lighttpd once to assure this config is applied. The reinstall otherwise is non-intrusive, hence safe to apply without risking any customization breakage.
1 parent ff7b668 commit 2851515

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.meta/dietpi-bookworm-upgrade

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,8 @@ sudo apt autopurge'
196196
fi
197197

198198
# Reinstall all PHP applications which require non-standard PHP modules, Python applications installed via pip, Home Assistant to get latest version, ...
199-
G_PROMPT_BACKUP_DISABLED=1 /boot/dietpi/dietpi-software reinstall 38 40 89 114 118 125 130 136 139 141 143 153 155 157 180 210
199+
# - Lighttpd: Assure correct PHP handler config is enabled
200+
G_PROMPT_BACKUP_DISABLED=1 /boot/dietpi/dietpi-software reinstall 38 40 84 89 114 118 125 130 136 139 141 143 153 155 157 180 210
200201

201202
G_DIETPI-NOTIFY 2 'Purging left config files from packages which were removed before already'
202203
mapfile -t packages < <(dpkg -l | mawk '$1=="rc"{print $2}')

0 commit comments

Comments
 (0)