From 96189cbf0d92b23f829be6bd70f8d91b52c291d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guitaut?= Date: Thu, 10 Sep 2015 00:52:43 +0200 Subject: [PATCH] Use a length of 16 chars for password This is a MySQL limitation. --- commands | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands b/commands index f730410..ea16b10 100755 --- a/commands +++ b/commands @@ -27,8 +27,8 @@ case "$1" in mkdir -p "$SERVICE_ROOT" || dokku_log_fail "Unable to create service directory" mkdir -p "$SERVICE_ROOT/data" || dokku_log_fail "Unable to create service data directory" - rootpassword=$(openssl rand -hex 16) - password=$(openssl rand -hex 16) + rootpassword=$(openssl rand -hex 8) + password=$(openssl rand -hex 8) echo "$rootpassword" > "$SERVICE_ROOT/ROOTPASSWORD" echo "$password" > "$SERVICE_ROOT/PASSWORD" touch "$LINKS_FILE"