Compare View
Commits (3)
Showing
2 changed files
Show diff stats
script/enable_participa_plugins
@@ -10,7 +10,6 @@ | @@ -10,7 +10,6 @@ | ||
10 | ./script/noosfero-plugins enable ckeditor_content | 10 | ./script/noosfero-plugins enable ckeditor_content |
11 | ./script/noosfero-plugins enable community_block | 11 | ./script/noosfero-plugins enable community_block |
12 | ./script/noosfero-plugins enable context_content | 12 | ./script/noosfero-plugins enable context_content |
13 | -./script/noosfero-plugins enable email_article | ||
14 | ./script/noosfero-plugins enable oauth_provider | 13 | ./script/noosfero-plugins enable oauth_provider |
15 | ./script/noosfero-plugins enable proposals_discussion | 14 | ./script/noosfero-plugins enable proposals_discussion |
16 | ./script/noosfero-plugins enable require_auth_to_comment | 15 | ./script/noosfero-plugins enable require_auth_to_comment |
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" |
@@ -136,8 +139,8 @@ _enable(){ | @@ -136,8 +139,8 @@ _enable(){ | ||
136 | ln -s "$source" "$target" | 139 | ln -s "$source" "$target" |
137 | plugins_public_dir="$NOOSFERO_DIR/public/plugins" | 140 | plugins_public_dir="$NOOSFERO_DIR/public/plugins" |
138 | plugins_features_dir="$NOOSFERO_DIR/features/plugins" | 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 | _say "$plugin enabled" | 144 | _say "$plugin enabled" |
142 | run "$source/after_enable.rb" | 145 | run "$source/after_enable.rb" |
143 | needs_migrate=true | 146 | needs_migrate=true |