mirror of
https://github.com/YunoHost/ynh-dev.git
synced 2024-09-03 20:05:59 +02:00
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:
parent
4eecc1059b
commit
3bdb65cd87
1 changed files with 2 additions and 2 deletions
4
ynh-dev
4
ynh-dev
|
@ -102,9 +102,9 @@ function create_sym_link() {
|
||||||
local DEST=$1
|
local DEST=$1
|
||||||
local LINK=$2
|
local LINK=$2
|
||||||
# Remove current sources if not a symlink
|
# Remove current sources if not a symlink
|
||||||
[ -L "$LINK" ] || sudo rm -rf $LINK
|
[ -L "$LINK" ] || rm -rf $LINK
|
||||||
# Symlink from Git repository
|
# Symlink from Git repository
|
||||||
sudo ln -sfn $DEST $LINK
|
ln -sfn $DEST $LINK
|
||||||
}
|
}
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
|
|
Loading…
Add table
Reference in a new issue