Update upgrade-nginx-deb.sh
This commit is contained in:
parent
699afb4a72
commit
8e09e4bac5
|
@ -10,7 +10,12 @@ OLD_VERSION=$(nginx -v 2>&1|cut -d '/' -f 2)
|
|||
|
||||
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 ..."
|
||||
service nginx stop
|
||||
|
|
Loading…
Reference in New Issue