File tree 3 files changed +9
-8
lines changed 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,9 @@ get_pg_cron_version() {
62
62
return
63
63
fi
64
64
65
- log " pg_cron: Found version $version in extensions file"
66
- echo " $version "
65
+ # Log the version but don't include it in the output
66
+ log " pg_cron: Found version $version in extensions file" >&2
67
+ printf " %s" " $version "
67
68
}
68
69
69
70
switch_pg_cron_version () {
@@ -76,8 +77,8 @@ switch_pg_cron_version() {
76
77
fi
77
78
78
79
log " pg_cron: Switching to version $version "
79
- # Run as postgres user since we're modifying their nix profile
80
- sudo -u postgres " $switch_script " " $version "
80
+ # Run directly as root since we're already running as root
81
+ " $switch_script " " $version "
81
82
local exit_code=$?
82
83
if [ $exit_code -eq 0 ]; then
83
84
log " pg_cron: Version switch completed successfully"
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ postgres_major:
9
9
10
10
# Full version strings for each major version
11
11
postgres_release :
12
- postgresorioledb-17 : " 17.0.1.067-orioledb-pgcron-5 "
13
- postgres17 : " 17.4.1.017-pgcron-5 "
14
- postgres15 : " 15.8.1.074-pgcron-5 "
12
+ postgresorioledb-17 : " 17.0.1.067-orioledb-pgcron-6 "
13
+ postgres17 : " 17.4.1.017-pgcron-6 "
14
+ postgres15 : " 15.8.1.074-pgcron-6 "
15
15
16
16
# Non Postgres Extensions
17
17
pgbouncer_release : " 1.19.0"
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ stdenv.mkDerivation {
115
115
116
116
VERSION=$1
117
117
NIX_PROFILE="/var/lib/postgresql/.nix-profile"
118
- LIB_DIR="$NIX_PROFILE /lib"
118
+ LIB_DIR="$out /lib"
119
119
EXTENSION_DIR="$NIX_PROFILE/share/postgresql/extension"
120
120
121
121
# Check if version exists
You can’t perform that action at this time.
0 commit comments