Update 'installer.sh'
This commit is contained in:
@@ -76,7 +76,7 @@ PHPMyadmin=1
|
||||
PKGA="add-apt-repository"
|
||||
PKGI="${PKGM} install -y"
|
||||
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/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 "FLUSH PRIVILEGES;" > $OUTPUT 2>&1
|
||||
|
||||
##----------------##
|
||||
# PhpMyAdmin #
|
||||
##----------------##
|
||||
ln -s /usr/share/phpmyadmin /var/www/mail.ictdownwerk.com/html/phpmyadmin
|
||||
|
||||
##------------------##
|
||||
# PostfixADMIN #
|
||||
##------------------##
|
||||
|
||||
Reference in New Issue
Block a user