#!/bin/sh

env=$(cat /etc/yandex/environment.type)

case "$env" in
production)
	ln -sf /etc/switchman.conf.prod /etc/switchman.conf
	;;
prestable)
	ln -sf /etc/switchman.conf.prestable /etc/switchman.conf
	;;
testing)
	ln -sf /etc/switchman.conf.test /etc/switchman.conf
	;;
development)
	ln -sf /etc/switchman.conf.dev /etc/switchman.conf
	;;
*)
	echo "Error: unknown yandex enviromment"
	exit 1
	;;
esac

exit 0
