Add --version flag to upgrade.sh

Change-Id: Ied867c7049675c586fb68e1a426e52bb498c61bc
This commit is contained in:
Dmitry Pyzhov 2014-08-01 19:46:38 +04:00
parent 2e2c054288
commit cc8cf904f9

View File

@ -43,6 +43,11 @@ function run_upgrade {
}
if [ "$1" == "--version" ]; then
cat $UPGRADE_PATH/config/version.yaml
exit
fi
(flock -n 9 || error "Upgrade is already running. Lock file: ${LOCK_FILE}"
run_upgrade "$@"
) 9> $LOCK_FILE