From ceb2061c4dd5375217f1e90f11c1beb8fb924439 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowe <8075565+abc123me@users.noreply.github.com> Date: Sat, 4 Nov 2023 21:47:34 -0400 Subject: [PATCH] Update rtinst - read carefully Added this section to the PHP/Curl version lookup table: # Debian bookworm support, not sure if this is compatiable w/ other distros though # This really needs to be more robust, why not check /etc/php for the version # Look at all folders in the directory, find the biggest number, use that one # Then for libcver, look in /usr/share/doc/ for libcurlXX if [ "$(lsb_release -sr)" = "12" ]; then phpver=php8.2 phploc=/etc/php/8.2 libcver=libcurl4 fi --- scripts/rtinst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/rtinst b/scripts/rtinst index 39da18d3..2569eb01 100755 --- a/scripts/rtinst +++ b/scripts/rtinst @@ -255,6 +255,16 @@ if [ "$relno" = "22" ] || [ "$(lsb_release -sr)" = "22.04" ]; then libcver=libcurl4 fi +# Debian bookworm support, not sure if this is compatiable w/ other distros though +# This really needs to be more robust, why not check /etc/php for the version +# Look at all folders in the directory, find the biggest number, use that one +# Then for libcver, look in /usr/share/doc/ for libcurlXX +if [ "$(lsb_release -sr)" = "12" ]; then + phpver=php8.2 + phploc=/etc/php/8.2 + libcver=libcurl4 +fi + serveripa=$(ip route get 8.8.8.8 | awk 'NR==1 {print $7}') serveripb=$(wget -qO- --timeout=3 ipecho.net/plain) serveripc=$(wget -qO- --timeout=3 ipinfo.io/ip)