Update 'installer.sh'

This commit is contained in:
b.waal
2019-08-31 22:38:16 +02:00
parent c7668ba922
commit 68b211b492

View File

@@ -192,7 +192,8 @@ mysql -u root -p"$password" -e "FLUSH PRIVILEGES;"
# MySQL Database Creation #
##-----------------------------##
mysql -u root -p"$password" -e "CREATE DATABASE postfixadmin;"
mysql -u root -p"$password" -e "GRANT ALL ON postfixadmin.* TO 'postfixadmin'@'localhost' IDENTIFIED BY '"$password"';"
mysql -u root -p"$password" -e "CREATE USER '"postfixadmin"'@'localhost' IDENTIFIED BY '"$password"';"
mysql -u root -p"$password" -e "GRANT ALL ON "postfixadmin".* TO "postfixadmin"@'localhost';"
mysql -u root -p"$password" -e "FLUSH PRIVILEGES;"
##------------------##
@@ -320,6 +321,7 @@ chown vmail:vmail /etc/dovecot/sieve/ -R
apt install unzip -y
wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/rainloop.sh -O /tmp/rainloop.sh
source /tmp/rainloop.sh
ln -s /opt/rainloop /var/www/html/"$domain"/
##-----------------------##
# Enabling Services #