From 64e4505a2f30b1ddf027ffd43898efa7bdfdd8d7 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 18 Oct 2012 15:12:33 +0200 Subject: o Changing the current symlink before running postinstall. --- .app/lib/app-instance | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to '.app/lib') 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 -- cgit v1.2.3