'NGINX-Installer.sh' updaten

This commit is contained in:
ictmaatwerk
2018-09-10 09:52:16 +00:00
parent ffaa734c60
commit 24ea98f761

View File

@@ -13,7 +13,6 @@
#-------------------# #-------------------#
apt install nginx mysql-server-5.7 -y apt install nginx mysql-server-5.7 -y
ufw allow 'Nginx HTTP'
mysql_secure_installation mysql_secure_installation
mysql -u root -p"$passwd" -e "SELECT user,authentication_string,plugin,host FROM mysql.user;" mysql -u root -p"$passwd" -e "SELECT user,authentication_string,plugin,host FROM mysql.user;"
mysql -u root -p"$passwd" -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '"$passwd"';" mysql -u root -p"$passwd" -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '"$passwd"';"