From 5a4f284e6773802f368cc84de9c57865c6356baa Mon Sep 17 00:00:00 2001 From: Joenio Costa Date: Wed, 27 Aug 2014 11:26:11 -0300 Subject: [PATCH] revert some changes made by commit '3d1796' --- script/noosfero-plugins | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/script/noosfero-plugins b/script/noosfero-plugins index 7a43a33..f245ef5 100755 --- a/script/noosfero-plugins +++ b/script/noosfero-plugins @@ -77,8 +77,7 @@ run(){ _enable(){ plugin="$1" - cd $enabled_plugins_dir - source="../../plugins/$plugin" + source="$available_plugins_dir/$plugin" target="$enabled_plugins_dir/$plugin" base="$base_plugins_dir/$plugin" run "$source/before_enable.rb" @@ -101,15 +100,11 @@ _enable(){ fi fi if [ "$installation_ok" = true ] && [ "$dependencies_ok" = true ]; then - ln -s "$source" "$plugin" + ln -s "$source" "$target" plugins_public_dir="$NOOSFERO_DIR/public/plugins" plugins_features_dir="$NOOSFERO_DIR/features/plugins" - cd $plugins_public_dir - test -d "$source/public" && ln -s "$source/public" "$plugin" - if [ -d "$NOOSFERO_DIR/features" ]; then - cd $plugins_features_dir - test -d "$source/features" && ln -s "$source/features" "$plugin" - fi + test -d "$target/public" && ln -s "$target/public" "$plugins_public_dir/$plugin" + test -d "$NOOSFERO_DIR/features" && test -d "$target/features" && ln -s "$target/features" "$plugins_features_dir/$plugin" _say "$plugin enabled" run "$source/after_enable.rb" needs_migrate=true -- libgit2 0.21.2