#!/bin/bash

set -e

### Include ymclibnettools
. /usr/lib/lib-fliwi/ymc-networktools.bash

if [ -e "/boot/ymccluster/host.password" ]; then
  username=$(ymc_get_local_short_hostname)
  password=$(cat /boot/ymccluster/host.password)
fi

if [ ! "$username" = "" -a ! "$password" = "" ]; then
  svn update --no-auth-cache --username $username --password $password /ymc_config
fi

### Support for fliwi-config
ymc-config-update-fliwi-config-links

