mirror of
https://github.com/xdtianyu/scripts.git
synced 2025-09-21 11:19:32 +08:00
Update upgrade-nginx.sh
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
VERSION="1.9.5"
|
||||
VERSION="1.10.0"
|
||||
OLD_VERSION=$(nginx -v 2>&1|cut -d '/' -f 2)
|
||||
|
||||
SSL_VERSION="1.0.2d"
|
||||
SSL_VERSION="1.0.2g"
|
||||
ZLIB_VERSION="1.2.8"
|
||||
|
||||
cd
|
||||
@@ -77,6 +77,11 @@ make
|
||||
echo "Stop service ..."
|
||||
service nginx stop
|
||||
cd /etc
|
||||
|
||||
if [ -d "nginx-$OLD_VERSION" ];then
|
||||
mv "nginx-$OLD_VERSION" "nginx-$OLD_VERSION-$(date +%m%d)"
|
||||
fi
|
||||
|
||||
mv nginx nginx-$OLD_VERSION
|
||||
cd -
|
||||
|
||||
|
Reference in New Issue
Block a user