Commit b6ff723a6e41405d58b49dc5835c68f3ab6bfc6c
1 parent
acac4a70
Exists in
production-vendorized
change creating symlinks to use relative path
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
script/noosfero-plugins
@@ -87,7 +87,7 @@ _enable(){ | @@ -87,7 +87,7 @@ _enable(){ | ||
87 | plugin="$1" | 87 | plugin="$1" |
88 | 88 | ||
89 | if [ -d "$available_plugins_dir/$plugin" ]; then | 89 | if [ -d "$available_plugins_dir/$plugin" ]; then |
90 | - source="$available_plugins_dir/$plugin" | 90 | + source="../../plugins/$plugin" |
91 | else | 91 | else |
92 | if [ ! -d "$plugin" ]; then | 92 | if [ ! -d "$plugin" ]; then |
93 | echo "E: $plugin not found (needs to be an existing directory)" | 93 | echo "E: $plugin not found (needs to be an existing directory)" |
@@ -101,6 +101,9 @@ _enable(){ | @@ -101,6 +101,9 @@ _enable(){ | ||
101 | 101 | ||
102 | target="$enabled_plugins_dir/$plugin" | 102 | target="$enabled_plugins_dir/$plugin" |
103 | base="$base_plugins_dir/$plugin" | 103 | base="$base_plugins_dir/$plugin" |
104 | + | ||
105 | + cd "$NOOSFERO_DIR/plugins/$plugin" | ||
106 | + | ||
104 | run "$source/before_enable.rb" | 107 | run "$source/before_enable.rb" |
105 | if [ -h "$target" -o -h "$base" ]; then | 108 | if [ -h "$target" -o -h "$base" ]; then |
106 | _say "$plugin already enabled" | 109 | _say "$plugin already enabled" |