Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin/ncp
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2022-03-05 01:55:39 +0300
committernachoparker <nacho@ownyourbits.com>2022-03-05 01:56:39 +0300
commitf473f737fd127c5e40153d133cb814bf7e8a7a86 (patch)
treefa30081d8cd514ddebe85bc03de81840ebd6b4c7 /bin/ncp
parentc9610e4d5c90888334047f82ab8086a0c9e77cc3 (diff)
nc-hdd-monitor: fix Bullseye service namev1.46.7
Signed-off-by: nachoparker <nacho@ownyourbits.com>
Diffstat (limited to 'bin/ncp')
-rw-r--r--bin/ncp/SYSTEM/nc-hdd-monitor.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ncp/SYSTEM/nc-hdd-monitor.sh b/bin/ncp/SYSTEM/nc-hdd-monitor.sh
index 15317252..4b99da7e 100644
--- a/bin/ncp/SYSTEM/nc-hdd-monitor.sh
+++ b/bin/ncp/SYSTEM/nc-hdd-monitor.sh
@@ -12,7 +12,7 @@
is_active()
{
- systemctl -q is-enabled smartd &>/dev/null
+ systemctl -q is-enabled smartmontools &>/dev/null
}
configure()
@@ -24,7 +24,7 @@ configure()
}
[[ "$ACTIVE" != yes ]] && {
- systemctl disable --now smartd
+ systemctl disable --now smartmontools
echo "HDD monitor disabled"
return 0
}
@@ -69,7 +69,7 @@ EOF
done
- systemctl enable --now smartd
+ systemctl enable --now smartmontools
echo "HDD monitor enabled"
}