Skip to content

Commit 58db6a3

Browse files
samrosesoedirgo
authored andcommitted
chore: already in background
1 parent 83dff18 commit 58db6a3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

nix/tools/dbmate-tool.sh.in

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ STAT_EXTENSION_SQL=@STAT_EXTENSION_SQL@
1919
# Start PostgreSQL using nix
2020
start_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
4848
trap cleanup EXIT INT TERM
4949

50-
# Start PostgreSQL
51-
start_postgres
5250

5351
# Function to display help
5452
print_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
295292
else
296293
echo "Migrating to PostgreSQL version $PSQL_VERSION"
297-
start_postgres
298294
migrate_version
299295
cleanup
300296
fi

0 commit comments

Comments
 (0)