Installation modifications

I had a few troubles with my Hestia install on Debian 12, I suspect there is an issue with my configuration, however, there may be broader problems. I post this to help others.

Debian 12 seems to want https for apt, so I did this:
sed -i ‘s|http://|https://|g’ /etc/apt/sources.list

I couldn’t get the Hestia keyring to work, this kludge let me install Hestia:
sed -i ‘s|deb [arch=$ARCH signed-by=/usr/share/keyrings/hestia-keyring.gpg] https://$RHOST/ $codename main|deb [arch=$ARCH trusted=yes] https://$RHOST/ $codename main|’ hst-install-debian.sh

I want to reduce the PHP attack surface to include PHP 7.4, 8.1 & 8.2, so before running the installer, I use this:
sed -i ‘s/multiphp_v=(“5.6” “7.0” “7.1” “7.2” “7.3” “7.4” “8.0” “8.1” “8.2”)/multiphp_v=(“7.4” “8.1” “8.2”)/g’ hst-install-debian.sh