Skip to content

Commit

Permalink
Merge pull request #49 from matelakat/no-multiple-symlinks
Browse files Browse the repository at this point in the history
Do not create symlink if it already exists
  • Loading branch information
matelakat committed Jan 22, 2014
2 parents 9100e27 + 58d4609 commit e0b2304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xenapi-in-rs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e0b2304

Please sign in to comment.