diff options
author | Simon Rettberg | 2020-02-26 10:21:57 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-02-26 10:21:57 +0100 |
commit | d16d25a28b41c9abe3ec8f9a62b0f316a7606823 (patch) | |
tree | 574ca56498eafad6c15d91583e3aab71445b6d60 /modules-available | |
parent | [dnbd3] Remove unused code (diff) | |
download | slx-admin-d16d25a28b41c9abe3ec8f9a62b0f316a7606823.tar.gz slx-admin-d16d25a28b41c9abe3ec8f9a62b0f316a7606823.tar.xz slx-admin-d16d25a28b41c9abe3ec8f9a62b0f316a7606823.zip |
[dnbd3] Run mount script when toggling dnbd3 usage
Pass the new "if local only" option, so the script only acutally runs if
internal storage is being used, since that takes care of properly
enabling or disabling the NFS server.
Diffstat (limited to 'modules-available')
-rw-r--r-- | modules-available/dnbd3/inc/dnbd3.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules-available/dnbd3/inc/dnbd3.inc.php b/modules-available/dnbd3/inc/dnbd3.inc.php index 2a6182da..ccd783d9 100644 --- a/modules-available/dnbd3/inc/dnbd3.inc.php +++ b/modules-available/dnbd3/inc/dnbd3.inc.php @@ -13,6 +13,7 @@ class Dnbd3 { public static function setEnabled($bool) { Property::set(self::PROP_ENABLED, $bool ? 1 : 0); + Trigger::mount(false, true); } public static function hasNfsFallback() @@ -24,5 +25,5 @@ class Dnbd3 { { Property::set(self::PROP_NFS_FALLBACK, $bool ? 1 : 0); } - + } |