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/UPDATES/nc-autoupdate-ncp.sh')
-rw-r--r--bin/ncp/UPDATES/nc-autoupdate-ncp.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/ncp/UPDATES/nc-autoupdate-ncp.sh b/bin/ncp/UPDATES/nc-autoupdate-ncp.sh
index 2a662ac6..6aa00f68 100644
--- a/bin/ncp/UPDATES/nc-autoupdate-ncp.sh
+++ b/bin/ncp/UPDATES/nc-autoupdate-ncp.sh
@@ -19,11 +19,10 @@ configure()
cat > /etc/cron.daily/ncp-autoupdate <<EOF
#!/bin/bash
+source /usr/local/etc/library.sh
if /usr/local/bin/ncp-test-updates; then
/usr/local/bin/ncp-update || exit 1
- /usr/local/bin/ncc notification:generate \
- "$NOTIFYUSER" "NextCloudPi" \
- -l "NextCloudPi was updated to \$( cat /usr/local/etc/ncp-version )"
+ notify_admin "NextCloudPi" "NextCloudPi was updated to \$(cat /usr/local/etc/ncp-version)"
fi
EOF
chmod 755 /etc/cron.daily/ncp-autoupdate