Update 'installer.sh'

This commit is contained in:
b.waal
2019-09-17 13:42:33 +02:00
parent 4bbd8e21aa
commit 55a5aff948

View File

@@ -23,7 +23,6 @@ PKGA="add-apt-repository"
PKGI="${PKGM} install -y" PKGI="${PKGM} install -y"
if [ $IMODE = n ]; then if [ $IMODE = n ]; then
TERM=ansi whiptail --title "Ubuntu 18.04 Mail Installer" --infobox "" 8 45
if (whiptail --title "Ubuntu 18.04 Mail Server" --yesno "Do you want to install a mail server?" 8 78) if (whiptail --title "Ubuntu 18.04 Mail Server" --yesno "Do you want to install a mail server?" 8 78)
then then
echo "" >/dev/null echo "" >/dev/null
@@ -65,13 +64,13 @@ debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Si
##----------------## ##----------------##
# Pre-Config # # Pre-Config #
##----------------## ##----------------##
TERM=ansi whiptail --title "Pre-ConfiguringL" --infobox "Busy like a bee" 8 45 TERM=ansi whiptail --title "Pre-Configuring" --infobox "Busy like a bee" 8 45
sleep 2 sleep 2
hostnamectl set-hostname $domain > $OUTPUT 2>&1 hostnamectl set-hostname $domain > $OUTPUT 2>&1
timedatectl set-timezone Europe/Amsterdam > $OUTPUT 2>&1 timedatectl set-timezone Europe/Amsterdam > $OUTPUT 2>&1
#adduser --system --no-create-home --disabled-password --disabled-login --shell /bin/false --group --home /var/lib/clamav clamav adduser --system --no-create-home --disabled-password --disabled-login --shell /bin/false --group --home /var/lib/clamav clamav
#mkdir -p /var/run/clamav mkdir -p /var/run/clamav
#chown clamav:clamav /var/run/clamav chown clamav:clamav /var/run/clamav
mkdir -p /etc/nginx mkdir -p /etc/nginx
mkdir -p /var/www/"$domain"/html mkdir -p /var/www/"$domain"/html
chmod -R 755 /var/www chmod -R 755 /var/www
@@ -89,6 +88,7 @@ chmod -R 755 /var/www
##----------------------## ##----------------------##
# Pre-Requirements # # Pre-Requirements #
##----------------------## ##----------------------##
TERM=ansi whiptail --title "" --infobox "Busy like a bee" 8 45
$PKGM update $PKGM update
$PKGI software-properties-common $PKGI software-properties-common
$PKGA universe -y > $OUTPUT 2>&1 $PKGA universe -y > $OUTPUT 2>&1
@@ -101,7 +101,7 @@ $PKGM upgrade -y
##-----------------------------## ##-----------------------------##
# Installing Requirements # # Installing Requirements #
##-----------------------------## ##-----------------------------##
$PKGI nginx php${phpver} php${phpver}-common php${phpver}-imap php${phpver}-zip php${phpver}-fpm php${phpver}-cli php${phpver}-json php${phpver}-mysql php${phpver}-opcache php${phpver}-mbstring php${phpver}-readline libc-client2007e mlock dovecot-imapd dovecot-lmtpd dovecot-pop3d dovecot-mysql dovecot-sieve dovecot-managesieved spamassassin spamc razor pyzor clamav clamav-daemon clamsmtp libclamunrar7 clamdscan amavisd-new zip lrzip liblz4-tool lhasa arj unzip bzip2 nomarch cpio lzop cabextract arc apt-listchanges libauthen-sasl-perl libdbd-mysql-perl libdbi-perl libmail-dkim-perl ripole p7zip p7zip-full p7zip-rar rpm unrar unrar-free altermime libsnmp-perl libnet-ldap-perl libnet-ph-perl libnet-snpp-perl libnet-telnet-perl unzip fail2ban $PKGI nginx postfix postfix-mysql php${phpver} php${phpver}-curl php${phpver}-dom php${phpver}-common php${phpver}-imap php${phpver}-zip php${phpver}-fpm php${phpver}-cli php${phpver}-json php${phpver}-mysql php${phpver}-opcache php${phpver}-mbstring php${phpver}-readline libc-client2007e mlock gnupg2 curl dovecot-imapd dovecot-lmtpd dovecot-pop3d dovecot-mysql dovecot-sieve dovecot-managesieved spamassassin spamc razor pyzor clamav clamav-daemon clamsmtp libclamunrar7 clamdscan amavisd-new zip lrzip liblz4-tool lhasa arj unzip bzip2 nomarch cpio lzop cabextract arc apt-listchanges libauthen-sasl-perl libdbd-mysql-perl libdbi-perl libmail-dkim-perl ripole p7zip p7zip-full p7zip-rar rpm unrar unrar-free altermime libsnmp-perl libnet-ldap-perl libnet-ph-perl libnet-snpp-perl libnet-telnet-perl unzip fail2ban
##-------------## ##-------------##
# Debloat # # Debloat #