From b326d84e0f09438c041b8a97548bc2b626c7ef81 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 10 Mar 2015 11:36:27 -0300 Subject: [PATCH] script/plugin: use absolute links to plugins --- script/noosfero-plugins | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/script/noosfero-plugins b/script/noosfero-plugins index daf55ac..8124f98 100755 --- a/script/noosfero-plugins +++ b/script/noosfero-plugins @@ -82,7 +82,6 @@ _enable(){ if [ -d "$available_plugins_dir/$plugin" ]; then source="$available_plugins_dir/$plugin" - linksource="../../plugins/$plugin" else if [ ! -d "$plugin" ]; then echo "E: $plugin not found (needs to be an existing directory)" @@ -91,7 +90,6 @@ _enable(){ # out-of-tree plugins source="$plugin" - linksource="$source" plugin=$(basename "$plugin") fi @@ -125,7 +123,7 @@ _enable(){ fi fi if [ "$installation_ok" = true ] && [ "$dependencies_ok" = true ]; then - ln -s "$linksource" "$target" + ln -s "$source" "$target" plugins_public_dir="$NOOSFERO_DIR/public/plugins" plugins_features_dir="$NOOSFERO_DIR/features/plugins" test -d "$target/public" && ln -s "$target/public" "$plugins_public_dir/$plugin" -- libgit2 0.21.2