File tree Expand file tree Collapse file tree 4 files changed +29
-0
lines changed
Expand file tree Collapse file tree 4 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
77### Bugfixes
88- Disable Apache2 Server Status Module by default.
99- Do not allow to change the password of a non-hestia user. Thanks to Alexandre Zanni!
10+ - Use sury repository for apache2 packages.
1011
1112## [ 1.1.1] - 2020-03-24 - Hotfix
1213### Features
Original file line number Diff line number Diff line change @@ -607,6 +607,12 @@ echo "deb https://packages.sury.org/php/ $codename main" > $apt/php.list
607607wget --quiet https://packages.sury.org/php/apt.gpg -O /tmp/php_signing.key
608608APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/php_signing.key > /dev/null 2>&1
609609
610+ # Installing sury apache2 repo
611+ echo " (*) Apache2"
612+ echo " deb https://packages.sury.org/apache2/ $codename main" > $apt /apache2.list
613+ wget --quiet https://packages.sury.org/apache2/apt.gpg -O /tmp/apache2_signing.key
614+ APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/apache2_signing.key > /dev/null 2>&1
615+
610616# Installing MariaDB repo
611617echo " (*) MariaDB"
612618echo " deb [arch=amd64] http://ams2.mirrors.digitalocean.com/mariadb/repo/$mariadb_v /$VERSION $codename main" > $apt /mariadb.list
Original file line number Diff line number Diff line change @@ -572,6 +572,10 @@ APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/nginx_signing.key > /dev
572572echo " (*) PHP"
573573LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php > /dev/null 2>&1
574574
575+ # Installing sury apache2 repo
576+ echo " (*) Apache2"
577+ echo " deb http://ppa.launchpad.net/ondrej/apache2/ubuntu $codename main" > $apt /apache2.list
578+
575579# Installing MariaDB repo
576580echo " (*) MariaDB"
577581echo " deb [arch=amd64] http://ams2.mirrors.digitalocean.com/mariadb/repo/$mariadb_v /$VERSION $codename main" > $apt /mariadb.list
Original file line number Diff line number Diff line change 99if [ -e " /etc/apache2/mods-enabled/status.conf" ]; then
1010 echo " (*) Disable Apache2 Server Status Module..."
1111 a2dismod status > /dev/null 2>&1
12+ fi
13+
14+ # Add sury apache2 repository
15+ if [ " $WEB_SYSTEM " = " apache2" ] && [ ! -e " /etc/apt/sources.list.d/apache2.list" ]; then
16+ echo " (*) Install sury.org Apache2 repository..."
17+
18+ # Check OS and install related repository
19+ if [ -e " /etc/os-release" ]; then
20+ type=$( grep " ^ID=" /etc/os-release | cut -f 2 -d ' =' )
21+ if [ " $type " = " ubuntu" ]; then
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+ elseif [ " $type " = " debian" ]; then
25+ echo " deb https://packages.sury.org/php/ $( lsb_release -sc) main" > /etc/apt/sources.list.d/apache2.list
26+ wget --quiet https://packages.sury.org/apache2/apt.gpg -O /tmp/apache2_signing.key
27+ APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/apache2_signing.key > /dev/null 2>&1
28+ fi
29+ fi
1230fi
You can’t perform that action at this time.
0 commit comments