Use a length of 16 chars for password

This is a MySQL limitation.
This commit is contained in:
Loïc Guitaut
2015-09-10 00:52:43 +02:00
parent c025c3250a
commit 96189cbf0d

View File

@@ -27,8 +27,8 @@ case "$1" in
mkdir -p "$SERVICE_ROOT" || dokku_log_fail "Unable to create service directory" 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" mkdir -p "$SERVICE_ROOT/data" || dokku_log_fail "Unable to create service data directory"
rootpassword=$(openssl rand -hex 16) rootpassword=$(openssl rand -hex 8)
password=$(openssl rand -hex 16) password=$(openssl rand -hex 8)
echo "$rootpassword" > "$SERVICE_ROOT/ROOTPASSWORD" echo "$rootpassword" > "$SERVICE_ROOT/ROOTPASSWORD"
echo "$password" > "$SERVICE_ROOT/PASSWORD" echo "$password" > "$SERVICE_ROOT/PASSWORD"
touch "$LINKS_FILE" touch "$LINKS_FILE"