You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ansible/files/admin_api_scripts/pg_upgrade_scripts/initiate.sh
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -212,7 +212,7 @@ EOF
212
212
213
213
functioninitiate_upgrade {
214
214
mkdir -p "$MOUNT_POINT"
215
-
SHARED_PRELOAD_LIBRARIES=$(cat "$POSTGRES_CONFIG_PATH"| grep shared_preload_libraries| sed "s/shared_preload_libraries =\s\{0,1\}'\(.*\)'.*/\1/")
215
+
SHARED_PRELOAD_LIBRARIES=$(grep '^[[:space:]]*shared_preload_libraries'"$POSTGRES_CONFIG_PATH"| sed "s/shared_preload_libraries =\s\{0,1\}'\(.*\)'.*/\1/")
216
216
217
217
# Wrappers officially launched in PG15; PG14 version is incompatible
218
218
if [[ "$OLD_PGVERSION"=~ 14* ]];then
@@ -241,7 +241,7 @@ function initiate_upgrade {
241
241
SHARED_PRELOAD_LIBRARIES=$(echo "$SHARED_PRELOAD_LIBRARIES"| sed "s/.$//"| xargs)
242
242
fi
243
243
244
-
PGDATAOLD=$(cat "$POSTGRES_CONFIG_PATH"| grep data_directory| sed "s/data_directory = '\(.*\)'.*/\1/")
244
+
PGDATAOLD=$(grep '^[[:space:]]*data_directory'"$POSTGRES_CONFIG_PATH"| sed "s/data_directory = '\(.*\)'.*/\1/")
0 commit comments