@@ -17,7 +17,7 @@ hst_backups="/root/hst_install_backups/$(date +%d%m%Y%H%M)"
1717arch=$( uname -i)
1818spinner=" /-\|"
1919os=' debian'
20- release=$( cat /etc/debian_version| grep -o [0-9] | head -n1)
20+ release=$( cat /etc/debian_version | tr " . " " \n " | head -n1)
2121codename=" $( cat /etc/os-release | grep VERSION= | cut -f 2 -d \( | cut -f 1 -d \) ) "
2222HESTIA_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
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"
5466fi
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
606618fi
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
614621echo " (*) Hestia Control Panel"
615622if [ -e $apt /hestia.list ]; then
622629
623630# Updating system
624631echo -ne " Updating currently installed packages, please wait... "
632+ apt-get -qq update
625633apt-get -y upgrade >> $LOG &
626634BACK_PID=$!
627635
864872# Install packages #
865873# ----------------------------------------------------------#
866874
867- # Updating system
868- apt-get -qq update
869-
870875# Disabling daemon autostart on apt-get install
871876echo -e ' #!/bin/sh\nexit 101' > /usr/sbin/policy-rc.d
872877chmod a+x /usr/sbin/policy-rc.d
@@ -963,13 +968,15 @@ chmod 755 /etc/cron.daily/ntpdate
963968ntpdate -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
968979fi
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# ----------------------------------------------------------#
0 commit comments