Revert "gitlab service: fix preStart script"

This reverts commit 31a5e065b0.

See #26000.
This commit is contained in:
Franz Pletz 2017-05-23 00:06:00 +02:00
parent c42739a429
commit 02bb7c2ec0
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -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