We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ef3d01 commit 0a0f6f9Copy full SHA for 0a0f6f9
1 file changed
install/upgrade/versions/latest.sh
@@ -22,7 +22,8 @@ if [ "$WEB_SYSTEM" = "apache2" ] && [ ! -e "/etc/apt/sources.list.d/apache2.list
22
codename="$(lsb_release -s -c)"
23
echo "deb http://ppa.launchpad.net/ondrej/apache2/ubuntu $codename main" > /etc/apt/sources.list.d/apache2.list
24
elif [ "$type" = "debian" ]; then
25
- echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/apache2.list
+ codename="$(cat /etc/os-release |grep VERSION= |cut -f 2 -d \(|cut -f 1 -d \))"
26
+ echo "deb https://packages.sury.org/php/ $codename main" > /etc/apt/sources.list.d/apache2.list
27
wget --quiet https://packages.sury.org/apache2/apt.gpg -O /tmp/apache2_signing.key
28
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/apache2_signing.key > /dev/null 2>&1
29
fi
0 commit comments