Director: No Master and icinga_master set?

Thank you. The problem was this update script where i found in www

git fetch --tags
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)
git checkout $latestTag