don't run ecto.create as we can safely assume the db already exists

(cherry picked from commit ec4b6abc4d)
This commit is contained in:
778a69cd 2024-03-07 12:30:24 +01:00
parent 1859eb8b7a
commit 3ff6a85b0c

View file

@ -153,7 +153,7 @@
${nodejs}/bin/npm run build ${nodejs}/bin/npm run build
'') '')
(pkgs.writeShellScriptBin "setup" '' (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;" 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 ${elixir}/bin/mix ecto.migrate
'') '')