From 008ef52fcb042d8d5f920a5d6f90ed5a4af327a0 Mon Sep 17 00:00:00 2001 From: "b.waal" Date: Sun, 1 Sep 2019 17:09:54 +0200 Subject: [PATCH] Update 'installer.sh' --- installer.sh | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/installer.sh b/installer.sh index 844829f..4898367 100644 --- a/installer.sh +++ b/installer.sh @@ -176,7 +176,7 @@ source /tmp/mysql-8.0.sh ##------------------------------## # MySQL_Secure_Installation # ##------------------------------## -mysqladmin -u root password "$password" +mysqladmin -u root -p "$password" mysql -u root -p"$password" -e "DELETE FROM mysql.user WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1')" mysql -u root -p"$password" -e "DELETE FROM mysql.user WHERE User=''" mysql -u root -p"$password" -e "DELETE FROM mysql.db WHERE Db='test' OR Db='test\_%'" @@ -364,12 +364,6 @@ echo " -o strict_rfc821_envelopes=yes" >> /etc/postfix/master.cf echo " -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks" >> /etc/postfix/master.cf echo " -o smtpd_bind_address=127.0.0.1" >> /etc/postfix/master.cf - - - - - - ##--------------## # Rainloop # ##--------------## @@ -392,9 +386,9 @@ systemctl restart fail2ban ##-----------------------## # Enabling Services # ##-----------------------## -systemctl enable postfix postfix@- dovecot fail2ban clamav clamav-daemon clamav-freshclam clamsmtp spamassassin amavisd-new amavisd-snmp-subagent amavis-mc amavis amavis-snmp-subagent +systemctl enable mysql postfix postfix@- dovecot fail2ban clamav-daemon clamav-freshclam clamsmtp spamassassin amavisd-new amavisd-snmp-subagent amavis-mc amavis amavis-snmp-subagent ##-----------------------## # Starting Services # ##-----------------------## -systemctl restart postfix postfix@- dovecot fail2ban clamav clamav-daemon clamav-freshclam clamsmtp spamassassin amavisd-new amavisd-snmp-subagent amavis-mc amavis amavis-snmp-subagent \ No newline at end of file +systemctl restart mysql postfix postfix@- dovecot fail2ban clamav-daemon clamav-freshclam clamsmtp spamassassin amavisd-new amavisd-snmp-subagent amavis-mc amavis amavis-snmp-subagent \ No newline at end of file