From d16d25a28b41c9abe3ec8f9a62b0f316a7606823 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 26 Feb 2020 10:21:57 +0100 Subject: [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. --- modules-available/dnbd3/inc/dnbd3.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules-available') 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); } - + } -- cgit v1.2.3-55-g7522