Skip to content

Commit 90bf494

Browse files
committed
Installer: backwards compatibility fix
1 parent 592fc72 commit 90bf494

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

install/hst-install-ubuntu.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ software="apache2 apache2.2-common apache2-suexec-custom apache2-utils
4444
postgresql postgresql-contrib proftpd-basic quota roundcube-core
4545
roundcube-mysql roundcube-plugins rrdtool rssh spamassassin sudo hestia
4646
hestia-nginx hestia-php vim-common vsftpd whois zip acl sysstat setpriv
47-
ipset libonig4"
47+
ipset libonig5"
4848

4949
# Defining help function
5050
help() {
@@ -798,12 +798,15 @@ if [ -d "$withdebs" ]; then
798798
software=$(echo "$software" | sed -e "s/hestia-php//")
799799
software=$(echo "$software" | sed -e "s/hestia//")
800800
fi
801-
if [ "$release" = '16.04' ] || [ "$release" = '20.04' ]; then
802-
software=$(echo "$software" | sed -e "s/setpriv/util-linux/")
801+
if [ "$release" = '16.04' ]; then
802+
software=$(echo "$software" | sed -e "s/libonig5/libonig2/")
803+
fi
804+
if [ "$release" = '18.04' ]; then
805+
software=$(echo "$software" | sed -e "s/libonig5/libonig4/")
803806
fi
804807
if [ "$release" = '20.04' ]; then
808+
software=$(echo "$software" | sed -e "s/setpriv/util-linux/")
805809
software=$(echo "$software" | sed -e "s/rssh//")
806-
software=$(echo "$software" | sed -e "s/libonig4/libonig5/")
807810
fi
808811

809812

0 commit comments

Comments
 (0)