Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F4696491
new-es-password.sh
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
bd808
Nov 4 2016, 6:45 PM
2016-11-04 18:45:38 (UTC+0)
Size
323 B
Referenced Files
None
Subscribers
None
new-es-password.sh
View Options
#!/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
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4116297
Default Alt Text
new-es-password.sh (323 B)
Attached To
Mode
P4372 new-es-password.sh
Attached
Detach File
Event Timeline
Log In to Comment