summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-10-09 14:20:23 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-10-09 14:20:23 +0200
commitcb38e87306cde54144867ef7141682fc7fad0980 (patch)
tree7c4ccbf2d59fd3624a1f08cda4fd1712566e272e
parentc5ec50dc1a70671bd20a9d9dac78ddfd297397be (diff)
downloadapp.sh-cb38e87306cde54144867ef7141682fc7fad0980.tar.gz
app.sh-cb38e87306cde54144867ef7141682fc7fad0980.tar.bz2
app.sh-cb38e87306cde54144867ef7141682fc7fad0980.tar.xz
app.sh-cb38e87306cde54144867ef7141682fc7fad0980.zip
o ln -f didn't work.
-rwxr-xr-xapp5
1 files changed, 3 insertions, 2 deletions
diff --git a/app b/app
index 55aa74d..e52e61d 100755
--- a/app
+++ b/app
@@ -235,7 +235,8 @@ method_install() {
)
echo "Changing current symlink"
- ln -f -s versions/$resolved_version/root $name/$instance/current
+ rm -f $BASEDIR/$name/$instance/current
+ ln -s versions/$resolved_version/root $BASEDIR/$name/$instance/current
(
cd $name/$instance/current
@@ -571,7 +572,7 @@ method_set_current() {
exit 1
fi
- ln -f -s versions/$version/root $BASEDIR/$name/$instance/current
+ ln -s versions/$version/root $BASEDIR/$name/$instance/current
return 0
}