diff --git a/flake.nix b/flake.nix index b64ba3d44..98e0de4cd 100644 --- a/flake.nix +++ b/flake.nix @@ -150,7 +150,7 @@ ${nodejs}/bin/npm run build '') (pkgs.writeShellScriptBin "setup" '' - ${elixir}/bin/mix ecto.create + # We assume the database already exists sudo -u postgres ${postgresql}/bin/psql -d mobilizon -c "create extension if not exists postgis; create extension if not exists unaccent; create extension if not exists pg_trgm;" ${elixir}/bin/mix ecto.migrate '')