File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,19 @@ public function __construct() {
2626 $ hcpp ->add_action ( 'priv_delete_user ' , [ $ this , 'priv_delete_user ' ] );
2727 $ hcpp ->add_action ( 'post_add_user ' , [ $ this , 'post_add_user ' ] );
2828 $ hcpp ->add_action ( 'hcpp_rebooted ' , [ $ this , 'hcpp_rebooted ' ] );
29+ $ hcpp ->add_action ( 'hcpp_plugin_disabled ' , [ $ this , 'hcpp_plugin_disabled ' ] );
30+ $ hcpp ->add_action ( 'hcpp_plugin_enabled ' , [ $ this , 'hcpp_plugin_enabled ' ] );
2931 }
3032
33+ // Stop services on plugin disabled.
34+ public function hcpp_plugin_disabled () {
35+ $ this ->stop ();
36+ }
37+
38+ // Start services on plugin enabled.
39+ public function hcpp_plugin_enabled () {
40+ $ this ->start ();
41+ }
3142
3243 // Intercept the certificate generation and copy over ssl certs for the webdav domain.
3344 public function cg_pws_generate_website_cert ( $ cmd ) {
You can’t perform that action at this time.
0 commit comments