Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
64046695
Commit
64046695
authored
Oct 27, 2013
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix get_userpass_for_nginx to get work
parent
f8654769
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
get_userpass_for_nginx.sh
etersoft/get_userpass_for_nginx.sh
+5
-2
No files found.
etersoft/get_userpass_for_nginx.sh
View file @
64046695
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment