Update upgrade-nginx-deb.sh

This commit is contained in:
tianyu 2016-05-11 15:02:59 +08:00
parent 699afb4a72
commit 8e09e4bac5
1 changed files with 6 additions and 1 deletions

View File

@ -10,7 +10,12 @@ OLD_VERSION=$(nginx -v 2>&1|cut -d '/' -f 2)
DEB_FILE="nginx_$VERSION-$(lsb_release -sc)-1_amd64.deb" DEB_FILE="nginx_$VERSION-$(lsb_release -sc)-1_amd64.deb"
wget "https://www.xdty.org/dl/vps/nginx_$VERSION-1_amd64.deb -O $DEB_FILE" wget "https://www.xdty.org/dl/vps/$DEB_FILE"i -O "$DEB_FILE"
if [ "$?" -ne 0 ]; then
echo "$DEB_FILE download failed!"
exit 1
fi
echo "Stop service ..." echo "Stop service ..."
service nginx stop service nginx stop