File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ STAT_EXTENSION_SQL=@STAT_EXTENSION_SQL@
1919# Start PostgreSQL using nix
2020start_postgres () {
2121 echo " Starting PostgreSQL..."
22- nix run " $FLAKE_URL #start-server" -- " $PSQL_VERSION " --skip-migrations --daemonize &
22+ nix run " $FLAKE_URL #start-server" -- " $PSQL_VERSION " --skip-migrations --daemonize
2323 echo " PostgreSQL started."
2424}
2525
@@ -47,8 +47,6 @@ cleanup() {
4747# Set up trap for cleanup on script exit
4848trap cleanup EXIT INT TERM
4949
50- # Start PostgreSQL
51- start_postgres
5250
5351# Function to display help
5452print_help () {
@@ -288,13 +286,11 @@ if [ "$PSQL_VERSION" == "all" ]; then
288286 echo " $VERSIONS " | while read -r version; do
289287 PSQL_VERSION=" $version "
290288 echo " Migrating to PostgreSQL version $PSQL_VERSION "
291- start_postgres
292289 migrate_version
293290 cleanup
294291 done
295292else
296293 echo " Migrating to PostgreSQL version $PSQL_VERSION "
297- start_postgres
298294 migrate_version
299295 cleanup
300296fi
You can’t perform that action at this time.
0 commit comments