From 83f9ed86152a203812d3c11b05d60f074d767c49 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 29 Aug 2016 10:38:39 -0400 Subject: [PATCH] Move link file creation up --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index 81116e6..a127644 100755 --- a/functions +++ b/functions @@ -22,12 +22,12 @@ service_create() { 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/config" || dokku_log_fail "Unable to create service config directory" + touch "$LINKS_FILE" rootpassword=$(openssl rand -hex 16) 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 echo "$MONGO_CUSTOM_ENV" | tr ';' "\n" > "$SERVICE_ROOT/ENV"