diff --git a/xenapi-in-rs.sh b/xenapi-in-rs.sh index c05cad8..0576928 100644 --- a/xenapi-in-rs.sh +++ b/xenapi-in-rs.sh @@ -303,7 +303,7 @@ function print_rclocal() { mkdir -p /mnt/ubuntu mount /dev/sda1 /mnt/ubuntu mkdir -p $(dirname $INSTALL_DIR) -ln -s /mnt/ubuntu${INSTALL_DIR} $INSTALL_DIR || true +[ -L $INSTALL_DIR ] || ln -s /mnt/ubuntu${INSTALL_DIR} $INSTALL_DIR if /bin/bash $THIS_FILE $ADDITIONAL_PARAMETERS >> $LOG_FILE 2>&1 ; then reboot fi