From b6ff723a6e41405d58b49dc5835c68f3ab6bfc6c Mon Sep 17 00:00:00 2001 From: Marcelo JĂșnior Date: Wed, 13 Jul 2016 18:51:18 -0300 Subject: [PATCH] change creating symlinks to use relative path --- script/noosfero-plugins | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script/noosfero-plugins b/script/noosfero-plugins index 11eb404..0571316 100755 --- a/script/noosfero-plugins +++ b/script/noosfero-plugins @@ -87,7 +87,7 @@ _enable(){ plugin="$1" if [ -d "$available_plugins_dir/$plugin" ]; then - source="$available_plugins_dir/$plugin" + source="../../plugins/$plugin" else if [ ! -d "$plugin" ]; then echo "E: $plugin not found (needs to be an existing directory)" @@ -101,6 +101,9 @@ _enable(){ target="$enabled_plugins_dir/$plugin" base="$base_plugins_dir/$plugin" + + cd "$NOOSFERO_DIR/plugins/$plugin" + run "$source/before_enable.rb" if [ -h "$target" -o -h "$base" ]; then _say "$plugin already enabled" -- libgit2 0.21.2