Skip to content

Commit dfaeb58

Browse files
committed
Add Debian Buster (10.0) support.
1 parent 40e10e8 commit dfaeb58

File tree

3 files changed

+28
-17
lines changed

3 files changed

+28
-17
lines changed

install/deb/clamav/clamd.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ Debug false
3030
ScanPE true
3131
ScanOLE2 true
3232
ScanHTML true
33-
DetectBrokenExecutables false
3433
ExitOnOOM false
3534
LeaveTemporaryFiles false
3635
AlgorithmicDetection true

install/hst-install-debian.sh

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ hst_backups="/root/hst_install_backups/$(date +%d%m%Y%H%M)"
1717
arch=$(uname -i)
1818
spinner="/-\|"
1919
os='debian'
20-
release=$(cat /etc/debian_version|grep -o [0-9]|head -n1)
20+
release=$(cat /etc/debian_version | tr "." "\n" | head -n1)
2121
codename="$(cat /etc/os-release |grep VERSION= |cut -f 2 -d \(|cut -f 1 -d \))"
2222
HESTIA_INSTALL_DIR="$HESTIA/install/deb"
2323

@@ -39,7 +39,7 @@ if [ "$release" -eq 8 ]; then
3939
e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
4040
bsdmainutils cron hestia hestia-nginx hestia-php expect libmail-dkim-perl
4141
unrar-free vim-common acl sysstat"
42-
else
42+
elif [ "$release" -eq 9 ]; then
4343
software="nginx apache2 apache2-utils apache2-suexec-custom
4444
libapache2-mod-ruid2 libapache2-mod-fcgid libapache2-mod-php php
4545
php-common php-cgi php-mysql php-curl php-pgsql php-imap php-ldap php-apcu
@@ -51,6 +51,18 @@ else
5151
e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
5252
bsdmainutils cron hestia hestia-nginx hestia-php expect libmail-dkim-perl
5353
unrar-free vim-common acl sysstat rsyslog"
54+
else
55+
software="nginx apache2 apache2-utils apache2-suexec-custom
56+
apache2-suexec-pristine libapache2-mod-fcgid libapache2-mod-php php
57+
php-common php-cgi php-mysql php-curl php-pgsql php-imap php-ldap php-apcu
58+
awstats vsftpd proftpd-basic bind9 exim4 exim4-daemon-heavy
59+
clamav-daemon spamassassin dovecot-imapd dovecot-pop3d roundcube-core net-tools
60+
roundcube-mysql roundcube-plugins mariadb-client mariadb-common
61+
mariadb-server postgresql postgresql-contrib phpmyadmin phppgadmin mc
62+
flex whois git idn zip sudo bc ftp lsof ntpdate rrdtool quota
63+
e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
64+
bsdmainutils cron hestia hestia-nginx hestia-php expect libmail-dkim-perl
65+
unrar-free vim-common acl sysstat rsyslog"
5466
fi
5567

5668
# Defining help function
@@ -605,11 +617,6 @@ if [ "$release" -eq 8 ]; then
605617
echo "deb [check-valid-until=no] http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list
606618
fi
607619

608-
# Installing Backport repo for debian 10
609-
if [ "$release" -eq 10 ]; then
610-
echo "deb http://ftp.debian.org/debian stretch-backports main" >> /etc/apt/sources.list
611-
fi
612-
613620
# Installing hestia repo
614621
echo "(*) Hestia Control Panel"
615622
if [ -e $apt/hestia.list ]; then
@@ -622,6 +629,7 @@ echo
622629

623630
# Updating system
624631
echo -ne "Updating currently installed packages, please wait... "
632+
apt-get -qq update
625633
apt-get -y upgrade >> $LOG &
626634
BACK_PID=$!
627635

@@ -864,9 +872,6 @@ fi
864872
# Install packages #
865873
#----------------------------------------------------------#
866874

867-
# Updating system
868-
apt-get -qq update
869-
870875
# Disabling daemon autostart on apt-get install
871876
echo -e '#!/bin/sh\nexit 101' > /usr/sbin/policy-rc.d
872877
chmod a+x /usr/sbin/policy-rc.d
@@ -963,13 +968,15 @@ chmod 755 /etc/cron.daily/ntpdate
963968
ntpdate -s pool.ntp.org
964969

965970
# Setup rssh
966-
if [ -z "$(grep /usr/bin/rssh /etc/shells)" ]; then
967-
echo /usr/bin/rssh >> /etc/shells
971+
if [ ! "$release" -eq 10 ]; then
972+
if [ -z "$(grep /usr/bin/rssh /etc/shells)" ]; then
973+
echo /usr/bin/rssh >> /etc/shells
974+
fi
975+
sed -i 's/#allowscp/allowscp/' /etc/rssh.conf
976+
sed -i 's/#allowsftp/allowsftp/' /etc/rssh.conf
977+
sed -i 's/#allowrsync/allowrsync/' /etc/rssh.conf
978+
chmod 755 /usr/bin/rssh
968979
fi
969-
sed -i 's/#allowscp/allowscp/' /etc/rssh.conf
970-
sed -i 's/#allowsftp/allowsftp/' /etc/rssh.conf
971-
sed -i 's/#allowrsync/allowrsync/' /etc/rssh.conf
972-
chmod 755 /usr/bin/rssh
973980

974981

975982
#----------------------------------------------------------#

install/upgrade/versions/latest.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,8 @@ if [ -z "$(v-list-cron-jobs admin | grep 'v-update-sys-queue backup')" ]; then
4040
command="sudo $BIN/v-update-sys-queue restart"
4141
$BIN/v-add-cron-job 'admin' '*/2' '*' '*' '*' '*' "$command"
4242
fi
43+
44+
# Remove deprecated configuration line
45+
if cat /etc/clamav/clamd.conf | grep -q "DetectBrokenExecutables"; then
46+
sed -i '/DetectBrokenExecutables/d' /etc/clamav/clamd.conf
47+
fi

0 commit comments

Comments
 (0)