From 682110c06ec73d2301b4479b3fae39d8790ca4fd Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Fri, 8 Mar 2019 23:49:25 -0500 Subject: [PATCH] chore: minor consolidation in functions files --- functions | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions b/functions index 95c6b27..6a3e5c4 100755 --- a/functions +++ b/functions @@ -8,8 +8,6 @@ if [[ -f "$PLUGIN_AVAILABLE_PATH/docker-options/functions" ]]; then source "$PLUGIN_AVAILABLE_PATH/docker-options/functions" fi -# non-generic functions - service_connect() { local SERVICE="$1" local SERVICE_ROOT="$PLUGIN_DATA_ROOT/$SERVICE" @@ -43,6 +41,7 @@ service_create() { mkdir -p "$SERVICE_ROOT/data" || dokku_log_fail "Unable to create service data directory" mkdir -p "$SERVICE_ROOT/config" || dokku_log_fail "Unable to create service config directory" touch "$LINKS_FILE" + ROOTPASSWORD=$(openssl rand -hex 16) PASSWORD=$(openssl rand -hex 16) if [[ -n "$SERVICE_PASSWORD" ]]; then