Commit 23e96e22 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add get_userpass_for_nginx

parent 032ae560
#!/bin/sh
# Written by Vitaly Lipatov <lav@etersoft.ru>, 2013
# get user/password list for nginx auth
DB_USER=nssuser
DB_PASS=userpass
DB_HOST=mysql.auth.etersoft.ru
DB=mail
mysql_query()
{
echo "$@" |
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"
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