From eee49809e8fa05cc1bcdb87041178bc7b913e4a4 Mon Sep 17 00:00:00 2001 From: GabrielFeodorov Date: Fri, 13 Dec 2024 13:18:49 +0200 Subject: [PATCH] removed some comments --- scripts/postgresql_install_binaries.sh | 8 ++------ scripts/postgresql_master_setup.sh | 3 --- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/scripts/postgresql_install_binaries.sh b/scripts/postgresql_install_binaries.sh index 903570b..40073ba 100644 --- a/scripts/postgresql_install_binaries.sh +++ b/scripts/postgresql_install_binaries.sh @@ -47,7 +47,8 @@ then sudo yum-config-manager --enable ol7_developer_EPEL sudo yum install -y llvm5.0-devel sudo yum install -y postgresql${pg_version_no_dot}-devel - #sudo yum install -y postgis32_${pg_version_no_dot} + sudo yum install -y postgis34_${pg_version_no_dot} + sudo yum install -y pgvector_${pg_version_no_dot} echo '-[100%]-> Install PostgreSQL pg_utility (postgresql${pg_version_no_dot}-devel OL7) installed.' fi if [[ $(uname -r | sed 's/^.*\(el[0-9]\+\).*$/\1/') == "el8" ]] @@ -59,13 +60,8 @@ then sudo dnf config-manager --enable ol8_codeready_builder sudo yum install -y llvm-devel sudo yum install -y postgresql${pg_version_no_dot}-devel - #postgis version is hardcoded sudo yum install -y postgis34_${pg_version_no_dot} sudo yum install -y pgvector_${pg_version_no_dot} - # sudo yum-config-manager --enable ol8_developer - # sudo yum-config-manager --enable ol8_developer_EPEL - # sudo yum install -y llvm5.0-devel - # sudo yum install -y postgresql${pg_version_no_dot}-devel echo '-[100%]-> Install PostgreSQL pg_utility (postgresql${pg_version_no_dot}-devel OL8) installed.' fi diff --git a/scripts/postgresql_master_setup.sh b/scripts/postgresql_master_setup.sh index 5cd023d..f6ef579 100644 --- a/scripts/postgresql_master_setup.sh +++ b/scripts/postgresql_master_setup.sh @@ -19,7 +19,6 @@ echo '-[100%]-> Firewall updated with hotstandby1 IP (${pg_hotstandby_ip}) on ma echo '--> Create replication user...' chown postgres /tmp/postgresql_master_setup.sql sudo -u postgres bash -c "psql -d template1 -f /tmp/postgresql_master_setup.sql" -#sudo -u postgres bash -c "psql -U postgres -d postgres -c \"alter user postgres with password '${pg_password}';\"" echo '-[100%]-> Replication user created.' if [[ $add_iscsi_volume == "true" ]]; then @@ -34,7 +33,6 @@ if [[ $add_iscsi_volume == "true" ]]; then sudo -u root bash -c "echo 'wal_keep_segments = 8' | sudo tee -a /data/pgsql/postgresql.conf" fi sudo -u root bash -c "echo 'hot_standby = on' | sudo tee -a /data/pgsql/postgresql.conf" - #sudo -u root bash -c "echo 'listen_addresses = '\''0.0.0.0'\'' ' | sudo tee -a /data/pgsql/postgresql.conf" sudo -u root bash -c "chown postgres /data/pgsql/postgresql.conf" echo '-[100%]-> File postgresql.conf updated with WAL support.' @@ -62,7 +60,6 @@ else sudo -u root bash -c "echo 'wal_keep_segments = 8' | sudo tee -a /var/lib/pgsql/${pg_version}/data/postgresql.conf" fi sudo -u root bash -c "echo 'hot_standby = on' | sudo tee -a /var/lib/pgsql/${pg_version}/data/postgresql.conf" - #sudo -u root bash -c "echo 'listen_addresses = '\''0.0.0.0'\'' ' | sudo tee -a /var/lib/pgsql/${pg_version}/data/postgresql.conf" sudo -u root bash -c "chown postgres /var/lib/pgsql/${pg_version}/data/postgresql.conf" echo '-[100%]-> File postgresql.conf updated with WAL support.'