Skip to content

Commit 29941c6

Browse files
committed
Add first steps for deb11 support.
1 parent 6dbabd5 commit 29941c6

File tree

1 file changed

+21
-19
lines changed

1 file changed

+21
-19
lines changed

install/hst-install-debian.sh

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pma_v='5.1.1'
2828
rc_v="1.4.11"
2929
multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4" "8.0")
3030
fpm_v="7.4"
31-
mariadb_v="10.5"
31+
mariadb_v="10.6"
3232

3333
if [ "$release" -eq 9 ]; then
3434
software="nginx apache2 apache2-utils apache2-suexec-custom
@@ -39,14 +39,13 @@ if [ "$release" -eq 9 ]; then
3939
php$fpm_v-json php$fpm_v-mbstring php$fpm_v-opcache php$fpm_v-pspell
4040
php$fpm_v-readline php$fpm_v-xml vsftpd proftpd-basic bind9 exim4
4141
exim4-daemon-heavy clamav-daemon spamassassin dovecot-imapd
42-
dovecot-pop3d net-tools
43-
mariadb-client mariadb-common mariadb-server postgresql
44-
postgresql-contrib phppgadmin mc flex whois rssh git idn zip
42+
dovecot-pop3d net-tools mariadb-client mariadb-common mariadb-server
43+
postgresql postgresql-contrib phppgadmin mc flex whois rssh git idn zip
4544
sudo bc ftp lsof rrdtool quota e2fslibs bsdutils e2fsprogs curl
4645
imagemagick fail2ban dnsutils bsdmainutils cron hestia=${HESTIA_INSTALL_VER} hestia-nginx
4746
hestia-php expect libmail-dkim-perl unrar-free vim-common acl sysstat
4847
rsyslog openssh-server setpriv ipset libapache2-mod-ruid2 zstd lsb-release"
49-
elif [ "$release" -eq 10 ]; then
48+
elif [ "$release" -eq 10 ] || [ "$release" -eq 11 ]; then
5049
software="nginx apache2 apache2-utils apache2-suexec-custom
5150
apache2-suexec-pristine libapache2-mod-fcgid libapache2-mod-php$fpm_v
5251
php$fpm_v php$fpm_v-common php$fpm_v-cgi php$fpm_v-mysql php$fpm_v-curl
@@ -55,14 +54,14 @@ elif [ "$release" -eq 10 ]; then
5554
php$fpm_v-gd php$fpm_v-intl php$fpm_v-json php$fpm_v-mbstring
5655
php$fpm_v-opcache php$fpm_v-pspell php$fpm_v-readline php$fpm_v-xml
5756
awstats vsftpd proftpd-basic bind9 exim4 exim4-daemon-heavy
58-
clamav-daemon spamassassin dovecot-imapd dovecot-pop3d
59-
net-tools mariadb-client
60-
mariadb-common mariadb-server postgresql postgresql-contrib
61-
phppgadmin mc flex whois git idn zip sudo bc ftp lsof rrdtool
62-
quota e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
63-
bsdmainutils cron hestia=${HESTIA_INSTALL_VER} hestia-nginx hestia-php expect
64-
libmail-dkim-perl unrar-free vim-common acl sysstat rsyslog openssh-server
65-
util-linux ipset libapache2-mpm-itk zstd lsb-release"
57+
clamav-daemon spamassassin dovecot-imapd dovecot-pop3d net-tools
58+
mariadb-client mariadb-common mariadb-server postgresql
59+
postgresql-contrib phppgadmin mc flex whois git idn zip sudo bc ftp lsof
60+
rrdtool quota e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban
61+
dnsutils bsdmainutils cron hestia=${HESTIA_INSTALL_VER} hestia-nginx
62+
hestia-php expect libmail-dkim-perl unrar-free vim-common acl sysstat
63+
rsyslog openssh-server util-linux ipset libapache2-mpm-itk zstd
64+
lsb-release"
6665
fi
6766

6867
installer_dependencies="apt-transport-https curl dirmngr gnupg wget ca-certificates"
@@ -655,7 +654,12 @@ fi
655654
# Installing MariaDB repo
656655
if [ "$mysql" = 'yes' ]; then
657656
echo "[ * ] MariaDB"
658-
echo "deb [arch=$ARCH] https://mirror.mva-n.net/mariadb/repo/$mariadb_v/$VERSION $codename main" > $apt/mariadb.list
657+
# Temporary solution for Deb11 support
658+
if [ "$release" -eq 11 ]; then
659+
echo "deb [arch=$ARCH] https://mirror.mva-n.net/mariadb/repo/$mariadb_v/$VERSION sid main" > $apt/mariadb.list
660+
else
661+
echo "deb [arch=$ARCH] https://mirror.mva-n.net/mariadb/repo/$mariadb_v/$VERSION $codename main" > $apt/mariadb.list
662+
fi
659663
apt-key adv --fetch-keys 'https://mariadb.org/mariadb_release_signing_key.asc' > /dev/null 2>&1
660664
fi
661665

@@ -967,7 +971,7 @@ systemctl enable systemd-timesyncd
967971
systemctl start systemd-timesyncd
968972

969973
# Setup rssh
970-
if [ ! "$release" -eq 10 ]; then
974+
if [ ! "$release" -eq 10 ] || [ ! "$release" -eq 11 ]; then
971975
if [ -z "$(grep /usr/bin/rssh /etc/shells)" ]; then
972976
echo /usr/bin/rssh >> /etc/shells
973977
fi
@@ -1292,7 +1296,7 @@ if [ "$apache" = 'yes' ]; then
12921296
a2enmod mpm_event > /dev/null 2>&1
12931297
cp -f $HESTIA_INSTALL_DIR/apache2/hestia-event.conf /etc/apache2/conf.d/
12941298
else
1295-
if [ "$release" -eq 10 ]; then
1299+
if [ "$release" -eq 10 ] || [ "$release" -eq 11 ]; then
12961300
a2enmod mpm_itk > /dev/null 2>&1
12971301
else
12981302
a2enmod ruid2 > /dev/null 2>&1
@@ -1605,9 +1609,7 @@ if [ "$dovecot" = 'yes' ]; then
16051609
cp -rf $HESTIA_INSTALL_DIR/dovecot /etc/
16061610
cp -f $HESTIA_INSTALL_DIR/logrotate/dovecot /etc/logrotate.d/
16071611
chown -R root:root /etc/dovecot*
1608-
if [ "$release" -eq 9 ] || [ "$release" -eq 10 ]; then
1609-
rm -f /etc/dovecot/conf.d/15-mailboxes.conf
1610-
fi
1612+
rm -f /etc/dovecot/conf.d/15-mailboxes.conf
16111613
update-rc.d dovecot defaults
16121614
systemctl start dovecot
16131615
check_result $? "dovecot start failed"

0 commit comments

Comments
 (0)