Skip to content

Commit 77f1775

Browse files
committed
Use sury repository for apache2 packages.
1 parent be324d6 commit 77f1775

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

install/hst-install-debian.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,12 @@ echo "deb https://packages.sury.org/php/ $codename main" > $apt/php.list
607607
wget --quiet https://packages.sury.org/php/apt.gpg -O /tmp/php_signing.key
608608
APT_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
611617
echo "(*) MariaDB"
612618
echo "deb [arch=amd64] http://ams2.mirrors.digitalocean.com/mariadb/repo/$mariadb_v/$VERSION $codename main" > $apt/mariadb.list

install/hst-install-ubuntu.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,10 @@ APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=1 apt-key add /tmp/nginx_signing.key > /dev
572572
echo "(*) PHP"
573573
LC_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
576580
echo "(*) MariaDB"
577581
echo "deb [arch=amd64] http://ams2.mirrors.digitalocean.com/mariadb/repo/$mariadb_v/$VERSION $codename main" > $apt/mariadb.list

install/upgrade/versions/latest.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,22 @@
99
if [ -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
1230
fi

0 commit comments

Comments
 (0)