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@
19
19
# Start PostgreSQL using nix
20
20
start_postgres () {
21
21
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
23
23
echo " PostgreSQL started."
24
24
}
25
25
@@ -47,8 +47,6 @@ cleanup() {
47
47
# Set up trap for cleanup on script exit
48
48
trap cleanup EXIT INT TERM
49
49
50
- # Start PostgreSQL
51
- start_postgres
52
50
53
51
# Function to display help
54
52
print_help () {
@@ -288,13 +286,11 @@ if [ "$PSQL_VERSION" == "all" ]; then
288
286
echo " $VERSIONS " | while read -r version; do
289
287
PSQL_VERSION=" $version "
290
288
echo " Migrating to PostgreSQL version $PSQL_VERSION "
291
- start_postgres
292
289
migrate_version
293
290
cleanup
294
291
done
295
292
else
296
293
echo " Migrating to PostgreSQL version $PSQL_VERSION "
297
- start_postgres
298
294
migrate_version
299
295
cleanup
300
296
fi
You can’t perform that action at this time.
0 commit comments