Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions scripts/rtinst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down