secure passwords

This commit is contained in:
Alexey Zagarin
2015-11-20 20:24:52 +03:00
parent 425642dc5c
commit 4e4c5241f7

View File

@@ -28,6 +28,7 @@ case "$1" in
mkdir -p "$SERVICE_ROOT" || dokku_log_fail "Unable to create service directory"
password=$(openssl rand -hex 16)
echo "$password" > "$SERVICE_ROOT/PASSWORD"
chmod 640 "$SERVICE_ROOT/PASSWORD"
touch "$LINKS_FILE"
dokku_log_info1 "Starting container"