Add --version flag to upgrade.sh
Change-Id: Ied867c7049675c586fb68e1a426e52bb498c61bc
This commit is contained in:
parent
2e2c054288
commit
cc8cf904f9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user