Commit 64046695 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix get_userpass_for_nginx to get work

parent f8654769
......@@ -3,7 +3,7 @@
# Written by Vitaly Lipatov <lav@etersoft.ru>, 2013
# get user/password list for nginx auth
DB_USER=nssuser
DB_USER=nss-user
DB_PASS=userpass
DB_HOST=mysql.auth.etersoft.ru
DB=mail
......@@ -15,4 +15,7 @@ mysql_query()
mysql -s -N --default-character-set=utf8 --user=$DB_USER --password=$DB_PASS --host $DB_HOST $DB
}
mysql_query "SELECT test(username),password FROM accountuser WHERE enable=1"
mysql_query "SELECT test(username),password FROM accountuser WHERE enable=1" | while read USER PASSWD ; do
echo "$USER:$PASSWD"
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment