Skip to content

Commit 94fdbcf

Browse files
author
Tobias Wojtylak
committed
allow activating deactivating plugin
1 parent 2c37b3a commit 94fdbcf

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

bin/sdPlugin.sh

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,13 @@ function activate_plugin {
5454
execute_in_docker "bin/console sw:cache:clear"
5555
}
5656

57-
function remove_plugin {
57+
function deactivate_plugin {
5858
execute_in_docker "bin/console sw:plugin:deactivate $PLUGIN_NAME"
59+
execute_in_docker "bin/console sw:cache:clear"
60+
}
61+
62+
function remove_plugin {
63+
deactivate_plugin
5964
execute_in_docker "bin/console sw:plugin:uninstall $PLUGIN_NAME"
6065
execute_in_docker "rm $PLUGIN_DIRECTORY"
6166
}
@@ -79,7 +84,15 @@ case "$2" in
7984
shift
8085
remove_plugin $@
8186
;;
87+
activate)
88+
shift
89+
activate_plugin $@
90+
;;
91+
deactivate)
92+
shift
93+
activate_plugin $@
94+
;;
8295
*)
83-
echo "usage: add/remove"
96+
echo "usage: add/remove/activate/deactivate"
8497
;;
8598
esac

0 commit comments

Comments
 (0)