Update 'installer.sh'
This commit is contained in:
12
installer.sh
12
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
|
||||
systemctl restart mysql postfix postfix@- dovecot fail2ban clamav-daemon clamav-freshclam clamsmtp spamassassin amavisd-new amavisd-snmp-subagent amavis-mc amavis amavis-snmp-subagent
|
||||
Reference in New Issue
Block a user