File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ if [ "$WEB_SYSTEM" = "apache2" ] && [ ! -e "/etc/apt/sources.list.d/apache2.list
2222 codename=" $( lsb_release -s -c) "
2323 echo " deb http://ppa.launchpad.net/ondrej/apache2/ubuntu $codename main" > /etc/apt/sources.list.d/apache2.list
2424 elif [ " $type " = " debian" ]; then
25- echo " deb https://packages.sury.org/php/ $( lsb_release -sc) main" > /etc/apt/sources.list.d/apache2.list
25+ 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
2627 wget --quiet https://packages.sury.org/apache2/apt.gpg -O /tmp/apache2_signing.key
2728 APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/apache2_signing.key > /dev/null 2>&1
2829 fi
You can’t perform that action at this time.
0 commit comments