diff --git a/src/warden-server/sh/install.sh b/src/warden-server/sh/install.sh index 32c1bea48d0ff87852b3913c467156b099b4a7eb..c0656c59b9d6f579a3d5c870eba2452da7412c82 100755 --- a/src/warden-server/sh/install.sh +++ b/src/warden-server/sh/install.sh @@ -175,12 +175,18 @@ createManifest() createSymlinks() { - echo "Creating symbolic links to $symbin ..." - for file in "${bin}/"* - do - echo "- creating symlink: ${symbin}/${file##*/} -> $file" - ln -s "$file" "${symbin}/${file##*/}" 2>/dev/null - done + echo -n "Creating symbolic links to $symbin ..." + if [[ -d $symbin && -w $symbin ]]; then + echo "OK" + for file in "${bin}/"* + do + echo "- creating symlink: ${symbin}/${file##*/} -> $file" + ln -s "$file" "${symbin}/${file##*/}" 2>/dev/null + done + else + echo "FAILED!" + fi + }