From 3bdb65cd8782d551f7fc774ad8b19ea994ddc160 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 14 Oct 2019 17:22:55 +0200 Subject: [PATCH] No need to sudo when creating symlinks, that could create a whole bunch of warning if slapd happens to be down --- ynh-dev | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ynh-dev b/ynh-dev index 6da7618..e0e01b8 100755 --- a/ynh-dev +++ b/ynh-dev @@ -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 } ##################################################################