From 02bb7c2ec04bb99c239711c961d21571121dff03 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Tue, 23 May 2017 00:06:00 +0200 Subject: [PATCH] Revert "gitlab service: fix preStart script" This reverts commit 31a5e065b06d0f65e6a5a5b2a9ac9a6e7164daef. See #26000. --- nixos/modules/services/misc/gitlab.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/gitlab.nix b/nixos/modules/services/misc/gitlab.nix index aabac8de15a2..0ed5a539e7dd 100644 --- a/nixos/modules/services/misc/gitlab.nix +++ b/nixos/modules/services/misc/gitlab.nix @@ -528,7 +528,7 @@ in { ln -fs ${cfg.packages.gitlab-shell}/hooks "$GITLAB_SHELL_HOOKS_PATH" ${cfg.packages.gitlab-shell}/bin/install - if [ "${cfg.databaseHost}" == "127.0.0.1" ]; then + if [ "${cfg.databaseHost}" = "127.0.0.1" ]; then if ! test -e "${cfg.statePath}/db-created"; then psql postgres -c "CREATE ROLE ${cfg.databaseUsername} WITH LOGIN NOCREATEDB NOCREATEROLE NOCREATEUSER ENCRYPTED PASSWORD '${cfg.databasePassword}'" ${config.services.postgresql.package}/bin/createdb --owner ${cfg.databaseUsername} ${cfg.databaseName} || true