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
adad9f71
Commit
adad9f71
authored
Apr 01, 2014
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
вынес пароль в конфиг (в репозитории — пример)
parent
08f697e4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
restore_jabberd_passwd.conf.example
etersoft/restore_jabberd_passwd.conf.example
+7
-0
restore_jabberd_passwd.sh
etersoft/restore_jabberd_passwd.sh
+3
-9
No files found.
etersoft/restore_jabberd_passwd.conf.example
0 → 100644
View file @
adad9f71
DB_USER=dbuser
DB_PASS=passwd
DB_HOST=mysqlhost
DB=dbname
REALM=im.etersoft.ru
FROMEMAIL=noreply@etersoft.ru
etersoft/restore_jabberd_passwd.sh
View file @
adad9f71
...
...
@@ -5,13 +5,7 @@
# ./restore_jabberd_passwd.sh LOGIN [e-mail]
# supports only im.etersoft.ru now
DB_USER
=
eter_jabber
DB_PASS
=
S7PCfhJj9v9eUMsm
DB_HOST
=
mysql.priv.etersoft.ru
DB
=
eter_jabber
REALM
=
im.etersoft.ru
EMAIL
=
lav@etersoft.ru
.
$(
dirname
$0
)
/restore_jabberd_passwd.conf
mysql_query
()
...
...
@@ -37,7 +31,7 @@ fi
test
-n
"
$USEREMAIL
"
||
fatal
"E-mail is missed in user vcard. You can run this script with user e-email as second arg."
echo
"E-mail:
$USEREMAIL
"
EMAIL
=
$
EMAIL
mutt
$USEREMAIL
-s
"Jabber password from im.etersoft.ru
"
<<
EOF
EMAIL
=
$
FROMEMAIL
mutt
$USEREMAIL
-s
"Jabber password from
$REALM
server
"
<<
EOF
Hello,
Your password recovery request for
$LOGIN
@
$REALM
jabber account has handled.
...
...
@@ -49,4 +43,4 @@ With best regards,
Etersoft robot,
$(
LANG
=
C
date
)
EOF
echo
"Mailed from
$EMAIL
to
$USEREMAIL
"
echo
"Mailed from
$
FROM
EMAIL
to
$USEREMAIL
"
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