No need to sudo when creating symlinks, that could create a whole bunch of warning if slapd happens to be down

This commit is contained in:
Alexandre Aubin 2019-10-14 17:22:55 +02:00
parent 4eecc1059b
commit 3bdb65cd87

View file

@ -102,9 +102,9 @@ function create_sym_link() {
local DEST=$1
local LINK=$2
# Remove current sources if not a symlink
[ -L "$LINK" ] || sudo rm -rf $LINK
[ -L "$LINK" ] || rm -rf $LINK
# Symlink from Git repository
sudo ln -sfn $DEST $LINK
ln -sfn $DEST $LINK
}
##################################################################