#!/bin/bash
# nginx update scripts
# url http://pp.gy
# author pp.gy

if [ ! $1 ];then
	ver="1.0.15"
else
	ver=$1
fi
cp -pR /www/wdlinux/nginx/conf/* /www/wdlinux/nginx-$ver/conf/
service nginxd stop
rm -f /www/wdlinux/nginx
ln -sf /www/wdlinux/nginx-$ver /www/wdlinux/nginx
service nginxd start
echo
echo "Nginx Back Is OK"
echo "Current Ver Is:$ver"
echo