aboutsummaryrefslogtreecommitdiff
path: root/.app/lib
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-10-18 15:12:33 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-10-18 15:12:33 +0200
commit64e4505a2f30b1ddf027ffd43898efa7bdfdd8d7 (patch)
tree28ee4b9c443b2e71f825f820f4e8e09e4345004c /.app/lib
parent190fbfc45fb1df608a34bd775b84564e872ab4dc (diff)
downloadapp.sh-64e4505a2f30b1ddf027ffd43898efa7bdfdd8d7.tar.gz
app.sh-64e4505a2f30b1ddf027ffd43898efa7bdfdd8d7.tar.bz2
app.sh-64e4505a2f30b1ddf027ffd43898efa7bdfdd8d7.tar.xz
app.sh-64e4505a2f30b1ddf027ffd43898efa7bdfdd8d7.zip
o Changing the current symlink before running postinstall.
Diffstat (limited to '.app/lib')
-rw-r--r--.app/lib/app-instance24
1 files changed, 12 insertions, 12 deletions
diff --git a/.app/lib/app-instance b/.app/lib/app-instance
index 5b34bf1..ce6ebeb 100644
--- a/.app/lib/app-instance
+++ b/.app/lib/app-instance
@@ -197,6 +197,18 @@ method_install() {
exit 1
fi
+ echo "Changing current symlink"
+ rm -f $apps/$name/$instance/current
+ ln -s versions/$resolved_version/root $apps/$name/$instance/current
+
+ if [ -d $name/$instance/current/bin ]
+ then
+ (
+ cd $name/$instance/current
+ find bin -type f | xargs chmod +x
+ )
+ fi
+
(
cd $name/$instance/versions/$resolved_version
if [ -d scripts ]
@@ -228,18 +240,6 @@ method_install() {
fi
)
- echo "Changing current symlink"
- rm -f $apps/$name/$instance/current
- ln -s versions/$resolved_version/root $apps/$name/$instance/current
-
- if [ -d $name/$instance/current/bin ]
- then
- (
- cd $name/$instance/current
- find bin -type f | xargs chmod +x
- )
- fi
-
if [ -r $apps/.app/var/list ]
then
sed "/^$name:$instance/d" $apps/.app/var/list > $apps/.app/var/list.new