Browse Source

Update postgresql

lj2007331@gmail.com 6 years ago
parent
commit
4139513b97
3 changed files with 5 additions and 5 deletions
  1. 1 1
      include/postgresql.sh
  2. 1 1
      uninstall.sh
  3. 3 3
      versions.txt

+ 1 - 1
include/postgresql.sh

@@ -18,6 +18,7 @@ Install_PostgreSQL() {
   ./configure --prefix=$pgsql_install_dir
   make -j ${THREAD}
   make install
+  chmod 755 ${pgsql_install_dir}
   chown -R postgres.postgres ${pgsql_install_dir}
   /bin/cp ./contrib/start-scripts/linux /etc/init.d/postgresql
   sed -i "s@^prefix=.*@prefix=${pgsql_install_dir}@" /etc/init.d/postgresql
@@ -40,7 +41,6 @@ Install_PostgreSQL() {
   if [ -e "${pgsql_install_dir}/bin/psql" ]; then
     sed -i "s+^dbpostgrespwd.*+dbpostgrespwd='$dbpostgrespwd'+" ../options.conf
     echo "${CSUCCESS}PostgreSQL installed successfully! ${CEND}"
-    rm -rf postgresql-${pgsql_ver}
   else
     rm -rf ${pgsql_install_dir} ${pgsql_data_dir}
     echo "${CFAILURE}PostgreSQL install failed, Please contact the author! ${CEND}"

+ 1 - 1
uninstall.sh

@@ -113,7 +113,7 @@ Uninstall_MySQL() {
   # uninstall mysql,mariadb,percona,alisql
   if [ -d "${db_install_dir}/support-files" ]; then
     service mysqld stop > /dev/null 2>&1
-    rm -rf ${db_install_dir} /etc/init.d/mysqld /etc/my.cnf /etc/ld.so.conf.d/{mysql,mariadb,percona,alisql}*.conf
+    rm -rf ${db_install_dir} /etc/init.d/mysqld /etc/my.cnf /etc/ld.so.conf.d/{mysql,mariadb,percona,alisql}*.conf /usr/local/lib/libboost* /usr/local/include/boost
     id -u mysql >/dev/null 2>&1 ; [ $? -eq 0 ] && userdel mysql
     [ -e "${db_data_dir}" ] && /bin/mv ${db_data_dir}{,$(date +%Y%m%d%H)}
     sed -i 's@^dbrootpwd=.*@dbrootpwd=@' ./options.conf

+ 3 - 3
versions.txt

@@ -26,9 +26,9 @@ mysql55_ver=5.5.60
 mariadb102_ver=10.2.14
 mariadb101_ver=10.1.32
 mariadb100_ver=10.0.34
-mariadb55_ver=5.5.59
+mariadb55_ver=5.5.60
 
-percona57_ver=5.7.21-20
+percona57_ver=5.7.21-21
 percona56_ver=5.6.39-83.1
 percona55_ver=5.5.59-38.11
 
@@ -49,7 +49,7 @@ jdk16_ver=1.6.0_45
 php72_ver=7.2.5
 php71_ver=7.1.17
 php70_ver=7.0.30
-php56_ver=5.6.35
+php56_ver=5.6.36
 php55_ver=5.5.38
 php54_ver=5.4.45
 php53_ver=5.3.29