Skip to content

Commit

Permalink
removed some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielFeodorov committed Dec 13, 2024
1 parent 52a45ad commit eee4980
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
8 changes: 2 additions & 6 deletions scripts/postgresql_install_binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]]
Expand All @@ -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

Expand Down
3 changes: 0 additions & 3 deletions scripts/postgresql_master_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.'

Expand Down Expand Up @@ -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.'

Expand Down

0 comments on commit eee4980

Please sign in to comment.