Skip to content

Commit 02bb7c2

Browse files
committedMay 22, 2017
Revert "gitlab service: fix preStart script"
This reverts commit 31a5e06. See #26000.
1 parent c42739a commit 02bb7c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎nixos/modules/services/misc/gitlab.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ in {
528528
ln -fs ${cfg.packages.gitlab-shell}/hooks "$GITLAB_SHELL_HOOKS_PATH"
529529
${cfg.packages.gitlab-shell}/bin/install
530530
531-
if [ "${cfg.databaseHost}" == "127.0.0.1" ]; then
531+
if [ "${cfg.databaseHost}" = "127.0.0.1" ]; then
532532
if ! test -e "${cfg.statePath}/db-created"; then
533533
psql postgres -c "CREATE ROLE ${cfg.databaseUsername} WITH LOGIN NOCREATEDB NOCREATEROLE NOCREATEUSER ENCRYPTED PASSWORD '${cfg.databasePassword}'"
534534
${config.services.postgresql.package}/bin/createdb --owner ${cfg.databaseUsername} ${cfg.databaseName} || true

0 commit comments

Comments
 (0)
Please sign in to comment.