update server.sh

fixed bug