Update 'installer.sh'

This commit is contained in:
b.waal
2019-10-24 12:13:37 +02:00
parent f2e03857c0
commit 9c730689d8

View File

@@ -76,7 +76,7 @@ PHPMyadmin=1
PKGA="add-apt-repository" PKGA="add-apt-repository"
PKGI="${PKGM} install -y" PKGI="${PKGM} install -y"
db_pass=$(date +%s|sha256sum|base64|head -c 32) db_pass=$(date +%s|sha256sum|base64|head -c 32)
wanip=`ip -o route get 8.8.8.8 | sed -e 's/^.* src \([^ ]*\) .*$/\1/'` wanip=`ip -o route get 1.1.1.1 | sed -e 's/^.* src \([^ ]*\) .*$/\1/'`
debconf-set-selections <<< "postfix postfix/mailname string $(hostname -f)" debconf-set-selections <<< "postfix postfix/mailname string $(hostname -f)"
debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'" debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Internet Site'"
@@ -184,6 +184,11 @@ mysql -u root -p"$password" -e "CREATE USER '"postfixadmin"'@'localhost' IDENTIF
mysql -u root -p"$password" -e "GRANT ALL ON "postfixadmin".* TO "postfixadmin"@'localhost';" > $OUTPUT 2>&1 mysql -u root -p"$password" -e "GRANT ALL ON "postfixadmin".* TO "postfixadmin"@'localhost';" > $OUTPUT 2>&1
mysql -u root -p"$password" -e "FLUSH PRIVILEGES;" > $OUTPUT 2>&1 mysql -u root -p"$password" -e "FLUSH PRIVILEGES;" > $OUTPUT 2>&1
##----------------##
# PhpMyAdmin #
##----------------##
ln -s /usr/share/phpmyadmin /var/www/mail.ictdownwerk.com/html/phpmyadmin
##------------------## ##------------------##
# PostfixADMIN # # PostfixADMIN #
##------------------## ##------------------##