mirror of
https://github.com/OpenNebula/one.git
synced 2026-12-01 20:56:42 +09:00
M #-: Replace existing links in install.sh link mode (#4708)
This commit is contained in:
1 parent
a5d92e52d9
commit
d23a2e5fb4
1 file changed
+2
-2
+2
-2
@@ -1309,7 +1309,7 @@ do_file() {
|
||||
rm "$DESTDIR$2/$(basename "$1")"
|
||||
else
|
||||
if [ "$LINK" = "yes" ]; then
|
||||
ln -s "$SRC_DIR"/"$1" "$DESTDIR$2"
|
||||
ln -sf "$SRC_DIR"/"$1" "$DESTDIR$2"
|
||||
else
|
||||
cp -RL "$SRC_DIR"/"$1" "$DESTDIR$2"
|
||||
fi
|
||||
@@ -1345,7 +1345,7 @@ do_tree() {
|
||||
if [ "$UNINSTALL" = "yes" ]; then
|
||||
rm -rf "$DESTDIR${2:?}/$b"
|
||||
elif [ "$LINK" = "yes" ]; then
|
||||
ln -s "$f" "$DESTDIR$2"
|
||||
ln -sf "$f" "$DESTDIR$2"
|
||||
else
|
||||
cp -RL "$f" "$DESTDIR$2"
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user