Compare View
Commits (3)
Showing
2 changed files
Show diff stats
script/enable_participa_plugins
| ... | ... | @@ -10,7 +10,6 @@ |
| 10 | 10 | ./script/noosfero-plugins enable ckeditor_content |
| 11 | 11 | ./script/noosfero-plugins enable community_block |
| 12 | 12 | ./script/noosfero-plugins enable context_content |
| 13 | -./script/noosfero-plugins enable email_article | |
| 14 | 13 | ./script/noosfero-plugins enable oauth_provider |
| 15 | 14 | ./script/noosfero-plugins enable proposals_discussion |
| 16 | 15 | ./script/noosfero-plugins enable require_auth_to_comment | ... | ... |
script/noosfero-plugins
| ... | ... | @@ -87,7 +87,7 @@ _enable(){ |
| 87 | 87 | plugin="$1" |
| 88 | 88 | |
| 89 | 89 | if [ -d "$available_plugins_dir/$plugin" ]; then |
| 90 | - source="$available_plugins_dir/$plugin" | |
| 90 | + source="../../plugins/$plugin" | |
| 91 | 91 | else |
| 92 | 92 | if [ ! -d "$plugin" ]; then |
| 93 | 93 | echo "E: $plugin not found (needs to be an existing directory)" |
| ... | ... | @@ -101,6 +101,9 @@ _enable(){ |
| 101 | 101 | |
| 102 | 102 | target="$enabled_plugins_dir/$plugin" |
| 103 | 103 | base="$base_plugins_dir/$plugin" |
| 104 | + | |
| 105 | + cd "$NOOSFERO_DIR/plugins/$plugin" | |
| 106 | + | |
| 104 | 107 | run "$source/before_enable.rb" |
| 105 | 108 | if [ -h "$target" -o -h "$base" ]; then |
| 106 | 109 | _say "$plugin already enabled" |
| ... | ... | @@ -136,8 +139,8 @@ _enable(){ |
| 136 | 139 | ln -s "$source" "$target" |
| 137 | 140 | plugins_public_dir="$NOOSFERO_DIR/public/plugins" |
| 138 | 141 | plugins_features_dir="$NOOSFERO_DIR/features/plugins" |
| 139 | - test -d "$target/public" && ln -s "$target/public" "$plugins_public_dir/$plugin" | |
| 140 | - test -d "$NOOSFERO_DIR/features" && test -d "$target/features" && ln -s "$target/features" "$plugins_features_dir/$plugin" | |
| 142 | + test -d "$source/public" && ln -s "$source/public" "$plugins_public_dir/$plugin" | |
| 143 | + test -d "$NOOSFERO_DIR/features" && test -d "$source/features" && ln -s "$source/features" "$plugins_features_dir/$plugin" | |
| 141 | 144 | _say "$plugin enabled" |
| 142 | 145 | run "$source/after_enable.rb" |
| 143 | 146 | needs_migrate=true | ... | ... |