Move link file creation up
This commit is contained in:
@@ -22,10 +22,10 @@ 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"
|
||||
password=$(openssl rand -hex 16)
|
||||
echo "$password" > "$SERVICE_ROOT/PASSWORD"
|
||||
chmod 640 "$SERVICE_ROOT/PASSWORD"
|
||||
touch "$LINKS_FILE"
|
||||
|
||||
if [[ -n $POSTGRES_CUSTOM_ENV ]]; then
|
||||
echo "$POSTGRES_CUSTOM_ENV" | tr ';' "\n" > "$SERVICE_ROOT/ENV"
|
||||
|
||||
Reference in New Issue
Block a user