Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P4372
new-es-password.sh
Active
Public
Actions
Authored by
•
bd808
on Nov 4 2016, 6:45 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
Toolforge
Elasticsearch
Subscribers
None
#!/usr/bin/env bash
# Ugly script to generate password data
# for the Tool Labs elasticsearch cluster
USER
=
${
1
}
PASS
=
$(
openssl rand -base64
32
)
TFILE
=
"
$(
basename
$0
)
.
$$
.tmp"
echo
user
=
$USER
echo
password
=
\"
$PASS
\"
echo
---------------------------------
echo
$PASS
|
htpasswd -cmi
$TFILE
$USER
&
>/dev/null
cat
$TFILE
rm
$TFILE
Event Timeline
•
bd808
created this paste.
Nov 4 2016, 6:45 PM
•
bd808
edited the content of this paste.
(Show Details)
Nov 4 2016, 9:46 PM
•
bd808
mentioned this in
T149709: Possible use of tools-lab-elasticsearch cluster
.
Nov 4 2016, 10:00 PM
Log In to Comment