diff --git a/plugins/bsc/install.rb b/plugins/bsc/install.rb new file mode 100644 index 0000000..f960f51 --- /dev/null +++ b/plugins/bsc/install.rb @@ -0,0 +1 @@ +raise "Not ready yet" diff --git a/plugins/ldap/install.rb b/plugins/ldap/install.rb new file mode 100644 index 0000000..f960f51 --- /dev/null +++ b/plugins/ldap/install.rb @@ -0,0 +1 @@ +raise "Not ready yet" diff --git a/plugins/mezuro/install.rb b/plugins/mezuro/install.rb new file mode 100644 index 0000000..f960f51 --- /dev/null +++ b/plugins/mezuro/install.rb @@ -0,0 +1 @@ +raise "Not ready yet" diff --git a/plugins/stoa/install.rb b/plugins/stoa/install.rb new file mode 100644 index 0000000..f960f51 --- /dev/null +++ b/plugins/stoa/install.rb @@ -0,0 +1 @@ +raise "Not ready yet" diff --git a/script/noosfero-plugins b/script/noosfero-plugins index 5540c11..b954c0f 100755 --- a/script/noosfero-plugins +++ b/script/noosfero-plugins @@ -86,12 +86,18 @@ _enable(){ echo "E: $plugin plugin does not exist!" return fi - dependencies_ok=true - dependencies_file="$source/dependencies.rb" - if ! run $dependencies_file; then - dependencies_ok=false + installation_ok=true + installation_file="$source/install.rb" + if ! run $installation_file; then + installation_ok=false + else + dependencies_ok=true + dependencies_file="$source/dependencies.rb" + if ! run $dependencies_file; then + dependencies_ok=false + fi fi - if [ "$dependencies_ok" = true ]; then + if [ "$installation_ok" = true ] && [ "$dependencies_ok" = true ]; then ln -s "$source" "$target" plugins_public_dir="$NOOSFERO_DIR/public/plugins" plugins_features_dir="$NOOSFERO_DIR/features/plugins" @@ -100,7 +106,9 @@ _enable(){ _say "$plugin enabled" run "$source/after_enable.rb" needs_migrate=true - else + elif [ "$installation_ok" = false ]; then + echo "W: failed to install $plugin; not enabling" + elif [ "$dependencies_ok" = false ]; then echo "W: failed to load dependencies for $plugin; not enabling" fi fi -- libgit2 0.21.2