#!/bin/sh

set -e

VERSION=$(cat /usr/lib/yandex/passport-auth-customs/changelog | head -1 | sed 's/^.*(//' | sed 's/).*$//')

ln -fs /usr/lib/yandex/passport-auth-customs/customs.config.json /usr/lib/yandex/passport-frontend/lib/customs.config.json
ln -fs /usr/lib/yandex/passport-auth-customs/additional-customs.config.json /usr/lib/yandex/passport-frontend/lib/additional-customs.config.json
ln -fs /usr/lib/yandex/passport-auth-customs/locs/customs.json /usr/lib/yandex/passport-frontend/lib/customs.json
ln -fs /usr/lib/yandex/passport-auth-customs/customs.version.json /usr/lib/yandex/passport-frontend/lib/customs.version.json
ln -fs /usr/lib/yandex/passport-auth-customs/customs.js /usr/lib/yandex/passport-frontend/lib/customs.js

exit 0