refactor bash syntax for xivo-upgrade-db