Secure password file

This commit is contained in:
Jose Diaz-Gonzalez
2016-08-27 01:38:38 -04:00
parent 1924739d74
commit 4e046f4d38

View File

@@ -372,6 +372,7 @@ service_create() {
password=$(openssl rand -hex 16)
echo "$rootpassword" > "$SERVICE_ROOT/ROOTPASSWORD"
echo "$password" > "$SERVICE_ROOT/PASSWORD"
chmod 640 "$SERVICE_ROOT/ROOTPASSWORD" "$SERVICE_ROOT/PASSWORD"
touch "$LINKS_FILE"
if [[ -n $MONGO_CUSTOM_ENV ]]; then