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
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ncp/SYSTEM/nc-hdd-monitor.sh')
-rw-r--r--bin/ncp/SYSTEM/nc-hdd-monitor.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/ncp/SYSTEM/nc-hdd-monitor.sh b/bin/ncp/SYSTEM/nc-hdd-monitor.sh
index e4c0976a..8d61de3f 100644
--- a/bin/ncp/SYSTEM/nc-hdd-monitor.sh
+++ b/bin/ncp/SYSTEM/nc-hdd-monitor.sh
@@ -45,10 +45,11 @@ EOF
}
cat >> /usr/local/etc/ncp-hdd-notif.sh <<EOF
+source /usr/local/etc/library.sh
wall "\$SMARTD_MESSAGE"
-sudo -u www-data php /var/www/nextcloud/occ notification:generate \
- $NOTIFYUSER "NextCloudPi HDD health \$SMARTD_FAILTYPE" \
- -l "\$SMARTD_MESSAGE"
+notify_admin \
+ "NextCloudPi HDD health \$SMARTD_FAILTYPE" \
+ "\$SMARTD_MESSAGE"
EOF
chmod +x /usr/local/etc/ncp-hdd-notif.sh