Browse Source

Update versions

lj2007331@gmail.com 6 years ago
parent
commit
7c551cafcc
5 changed files with 24 additions and 9 deletions
  1. 3 3
      addons.sh
  2. 0 1
      include/openssl.sh
  3. 14 0
      init.d/postgresql.service
  4. 3 1
      uninstall.sh
  5. 4 4
      versions.txt

+ 3 - 3
addons.sh

@@ -451,9 +451,9 @@ What Are You Doing?
             tar xzf swoole-${swoole_ver}.tgz
             pushd swoole-${swoole_ver}
           else
-            src_url=https://pecl.php.net/get/swoole-1.10.4.tgz && Download_src
-            tar xzf swoole-1.10.4.tgz
-            pushd swoole-1.10.4
+            src_url=https://pecl.php.net/get/swoole-1.10.5.tgz && Download_src
+            tar xzf swoole-1.10.5.tgz
+            pushd swoole-1.10.5
           fi
           ${php_install_dir}/bin/phpize
           ./configure --with-php-config=${php_install_dir}/bin/php-config

+ 0 - 1
include/openssl.sh

@@ -20,7 +20,6 @@ Install_openSSL102() {
     popd
     if [ -f "${openssl_install_dir}/lib/libcrypto.a" ]; then
       echo "${CSUCCESS}openssl-1.0.2 module installed successfully! ${CEND}"
-      /bin/cp cacert.pem ${openssl_install_dir}/cacert.pem
       /bin/cp cacert.pem ${openssl_install_dir}/cert.pem
       rm -rf openssl-${openssl_ver}
     else

+ 14 - 0
init.d/postgresql.service

@@ -0,0 +1,14 @@
+[Unit]
+Description=PostgreSQL database server
+
+[Service]
+Type=notify
+User=postgres
+ExecStart=/usr/local/pgsql/bin/postgres -D /data/pgsql
+ExecReload=/bin/kill -HUP $MAINPID
+KillMode=mixed
+KillSignal=SIGINT
+TimeoutSec=0
+
+[Install]
+WantedBy=multi-user.target

+ 3 - 1
uninstall.sh

@@ -81,10 +81,10 @@ Print_web() {
 }
 
 Uninstall_Web() {
-  [ -e "/lib/systemd/system/nginx.service" ] && { systemctl disable nginx > /dev/null 2>&1; rm -f /lib/systemd/system/nginx.service; }
   [ -d "${nginx_install_dir}" ] && { killall nginx > /dev/null 2>&1; rm -rf ${nginx_install_dir} /etc/init.d/nginx /etc/logrotate.d/nginx; sed -i "s@${nginx_install_dir}/sbin:@@" /etc/profile; echo "${CMSG}Nginx uninstall completed! ${CEND}"; }
   [ -d "${tengine_install_dir}" ] && { killall nginx > /dev/null 2>&1; rm -rf ${tengine_install_dir} /etc/init.d/nginx /etc/logrotate.d/nginx; sed -i "s@${tengine_install_dir}/sbin:@@" /etc/profile; echo "${CMSG}Tengine uninstall completed! ${CEND}"; }
   [ -d "${openresty_install_dir}" ] && { killall nginx > /dev/null 2>&1; rm -rf ${openresty_install_dir} /etc/init.d/nginx /etc/logrotate.d/nginx; sed -i "s@${openresty_install_dir}/nginx/sbin:@@" /etc/profile; echo "${CMSG}OpenResty uninstall completed! ${CEND}"; }
+  [ -e "/lib/systemd/system/nginx.service" ] && { systemctl disable nginx > /dev/null 2>&1; rm -f /lib/systemd/system/nginx.service; }
   [ -d "${apache_install_dir}" ] && { service httpd stop > /dev/null 2>&1; rm -rf ${apache_install_dir} /etc/init.d/httpd /etc/logrotate.d/apache; sed -i "s@${apache_install_dir}/bin:@@" /etc/profile; echo "${CMSG}Apache uninstall completed! ${CEND}"; }
   [ -d "${tomcat_install_dir}" ] && { killall java > /dev/null 2>&1; chmod +x /etc/logrotate.d/tomcat; rm -rf ${tomcat_install_dir} /etc/init.d/tomcat /etc/logrotate.d/tomcat /usr/local/apr; echo "${CMSG}Tomcat uninstall completed! ${CEND}"; }
   [ -d "/usr/java" ] && { rm -rf /usr/java; sed -i '/export JAVA_HOME=/d' /etc/profile; sed -i '/export CLASSPATH=/d' /etc/profile; sed -i 's@\$JAVA_HOME/bin:@@' /etc/profile; }
@@ -195,10 +195,12 @@ Uninstall_PureFtpd() {
 Print_Redis() {
   [ -e "$redis_install_dir" ] && echo "$redis_install_dir"
   [ -e "/etc/init.d/redis-server" ] && echo "/etc/init.d/redis-server"
+  [ -e "/lib/systemd/system/redis-server.service" ] && echo '/lib/systemd/system/redis-server.service'
 }
 
 Uninstall_Redis() {
   [ -e "$redis_install_dir" ] && { service redis-server stop > /dev/null 2>&1; rm -rf $redis_install_dir /etc/init.d/redis-server /usr/local/bin/redis-*; echo "${CMSG}Redis uninstall completed! ${CEND}"; }
+  [ -e "/lib/systemd/system/redis-server.service" ] && { systemctl disable redis-server > /dev/null 2>&1; rm -f /lib/systemd/system/redis-server.service; }
   [ -e "${php_install_dir}/etc/php.d/05-redis.ini" ] && { rm -rf ${php_install_dir}/etc/php.d/05-redis.ini; echo "${CMSG}Pecl_redis uninstall completed! ${CEND}"; }
 }
 

+ 4 - 4
versions.txt

@@ -2,7 +2,7 @@
 # Web
 nginx_ver=1.14.0
 tengine_ver=2.2.2
-openresty_ver=1.13.6.1
+openresty_ver=1.13.6.2
 openssl_ver=1.0.2o
 
 tomcat9_ver=9.0.8
@@ -23,7 +23,7 @@ mysql57_ver=5.7.22
 mysql56_ver=5.6.40
 mysql55_ver=5.5.60
 
-mariadb102_ver=10.2.14
+mariadb102_ver=10.2.15
 mariadb101_ver=10.1.33
 mariadb100_ver=10.0.35
 mariadb55_ver=5.5.60
@@ -55,13 +55,13 @@ php54_ver=5.4.45
 php53_ver=5.3.29
 
 libiconv_ver=1.15
-curl_ver=7.59.0
+curl_ver=7.60.0
 libmcrypt_ver=2.5.8
 mcrypt_ver=2.6.8
 mhash_ver=0.9.9.9
 libsodium_ver=1.0.16
 argon2_ver=20171227
-imagemagick_ver=6.9.9-43
+imagemagick_ver=6.9.9-45
 imagick_ver=3.4.3
 graphicsmagick_ver=1.3.28
 gmagick_for_php7_ver=2.0.5RC1