File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
ansible/files/admin_api_scripts/pg_upgrade_scripts Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -170,13 +170,13 @@ function apply_auth_scheme_updates {
170
170
171
171
function start_vacuum_analyze {
172
172
report_upgrade_status " complete"
173
- if ! command -v nix & > /dev/null ; then
174
- su -c ' vacuumdb --all --analyze-in-stages ' -s " $SHELL " postgres
175
- else
173
+
174
+ # shellcheck disable=SC1091
175
+ if [ -f " /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh " ] ; then
176
176
# shellcheck disable=SC1091
177
- source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
178
- vacuumdb --all --analyze-in-stages -U supabase_admin -h localhost -p 5432
177
+ source " /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh"
179
178
fi
179
+ vacuumdb --all --analyze-in-stages -U supabase_admin -h localhost -p 5432
180
180
echo " Upgrade job completed"
181
181
}
182
182
You can’t perform that action at this time.
0 commit comments