@@ -221,11 +221,11 @@ mkdir -p "$DATDIR/extension-custom-scripts"
221221cp -r " $EXTENSION_CUSTOM_SCRIPTS " /* " $DATDIR /extension-custom-scripts"
222222
223223# Configure supautils
224- sed " s|supautils.extension_custom_scripts_path = '/etc/postgresql-custom/extension-custom-scripts'|supautils.extension_custom_scripts_path = '$DATDIR /extension-custom-scripts'|" " $SUPAUTILS_CONFIG_FILE " > " $DATDIR /conf.d/05- supautils.conf"
224+ sed " s|supautils.extension_custom_scripts_path = '/etc/postgresql-custom/extension-custom-scripts'|supautils.extension_custom_scripts_path = '$DATDIR /extension-custom-scripts'|" " $SUPAUTILS_CONFIG_FILE " > " $DATDIR /conf.d/supautils.conf"
225225
226226# Configure PostgreSQL
227227sed -e " 1i\\
228- include = '$DATDIR /conf.d/05- supautils.conf'" \
228+ include = '$DATDIR /conf.d/supautils.conf'" \
229229-e " \$ a\\
230230pgsodium.getkey_script = '$PGSODIUM_GETKEY_SCRIPT '" \
231231-e " \$ a\\
@@ -243,7 +243,7 @@ orioledb_config_items() {
243243 echo " non-macos oriole conf"
244244 sed -i ' s/ timescaledb,//g;' " $DATDIR /postgresql.conf"
245245 sed -i ' s/db_user_namespace = off/#db_user_namespace = off/g;' " $DATDIR /postgresql.conf"
246- sed -i ' s/ timescaledb,//g; s/ plv8,//g; s/ pgjwt,//g;' " $DATDIR /conf.d/05- supautils.conf"
246+ sed -i ' s/ timescaledb,//g; s/ plv8,//g; s/ pgjwt,//g;' " $DATDIR /conf.d/supautils.conf"
247247 sed -i ' s/\(shared_preload_libraries.*\)' \' ' \(.*\)$/\1, orioledb' \' ' \2/' " $DATDIR /postgresql.conf"
248248 echo " default_table_access_method = 'orioledb'" >> " $DATDIR /postgresql.conf"
249249 elif [[ " $1 " = " orioledb-17" && " $CURRENT_SYSTEM " = " aarch64-darwin" ]]; then
@@ -255,22 +255,22 @@ orioledb_config_items() {
255255 perl -pi -e ' s/ timescaledb,//g' " $DATDIR /postgresql.conf"
256256 perl -pi -e ' s/db_user_namespace = off/#db_user_namespace = off/g' " $DATDIR /postgresql.conf"
257257
258- perl -pi -e ' s/ timescaledb,//g' " $DATDIR /conf.d/05- supautils.conf"
259- perl -pi -e ' s/ plv8,//g' " $DATDIR /conf.d/05- supautils.conf"
260- perl -pi -e ' s/ pgjwt,//g' " $DATDIR /conf.d/05- supautils.conf"
258+ perl -pi -e ' s/ timescaledb,//g' " $DATDIR /conf.d/supautils.conf"
259+ perl -pi -e ' s/ plv8,//g' " $DATDIR /conf.d/supautils.conf"
260+ perl -pi -e ' s/ pgjwt,//g' " $DATDIR /conf.d/supautils.conf"
261261 perl -pi -e ' s/(shared_preload_libraries\s*=\s*' \' ' .*?)' \' ' /\1, orioledb' \' ' /' " $DATDIR /postgresql.conf"
262262
263263 echo " default_table_access_method = 'orioledb'" >> " $DATDIR /postgresql.conf"
264264 elif [[ " $VERSION " == " 17" && " $CURRENT_SYSTEM " != " aarch64-darwin" ]]; then
265265 echo " non-macos pg 17 conf"
266266 sed -i ' s/ timescaledb,//g;' " $DATDIR /postgresql.conf"
267267 sed -i ' s/db_user_namespace = off/#db_user_namespace = off/g;' " $DATDIR /postgresql.conf"
268- sed -i ' s/ timescaledb,//g; s/ plv8,//g;' " $DATDIR /conf.d/05- supautils.conf"
268+ sed -i ' s/ timescaledb,//g; s/ plv8,//g;' " $DATDIR /conf.d/supautils.conf"
269269 elif [[ " $VERSION " == " 17" && " $CURRENT_SYSTEM " = " aarch64-darwin" ]]; then
270270 perl -pi -e ' s/db_user_namespace = off/#db_user_namespace = off/g;' " $DATDIR /postgresql.conf"
271271 perl -pi -e ' s/ timescaledb,//g' " $DATDIR /postgresql.conf"
272- perl -pi -e ' s/ timescaledb,//g' " $DATDIR /conf.d/05- supautils.conf"
273- perl -pi -e ' s/ plv8,//g;' " $DATDIR /conf.d/05- supautils.conf"
272+ perl -pi -e ' s/ timescaledb,//g' " $DATDIR /conf.d/supautils.conf"
273+ perl -pi -e ' s/ plv8,//g;' " $DATDIR /conf.d/supautils.conf"
274274 fi
275275}
276276
0 commit comments