#! /bin/bash -eu

#chmod +x /etc/sv/etcd/run /etc/sv/etcd/log/run

cd /etc/sv/etcd
cp run.$(cat /etc/yandex/environment.type) run
chmod +x run
update-service --add /etc/sv/etcd || true
