Update upgrade-nginx.sh

This commit is contained in:
tianyu 2016-04-27 10:14:58 +08:00
parent 08a88407ae
commit 43577f37aa
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ service nginx stop
cd /etc || exit 1 cd /etc || exit 1
if [ -d "nginx-$OLD_VERSION" ]; then if [ -d "nginx-$OLD_VERSION" ]; then
mv "nginx-$OLD_VERSION" "nginx-$OLD_VERSION-$(date +%m%d)" mv "nginx-$OLD_VERSION" "nginx-$OLD_VERSION-$(date +%m%d%M%S)"
fi fi
mv nginx "nginx-$OLD_VERSION" mv nginx "nginx-$OLD_VERSION"