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:
authornachoparker <nacho@ownyourbits.com>2017-04-03 20:59:44 +0300
committernachoparker <nacho@ownyourbits.com>2017-04-03 21:28:26 +0300
commit9b5cd8126f05a8151e78410df994c00a20c49f75 (patch)
treed74190d05cc1103969bb482d183037d627a50c9e /bin/ncp-check-updates
parent138fecc9f67eb2aaba6c50bf39cf22a16891f7c8 (diff)
check for updates (and update) upon launching nextcloudpi-configv0.5.3
Diffstat (limited to 'bin/ncp-check-updates')
-rwxr-xr-xbin/ncp-check-updates9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/ncp-check-updates b/bin/ncp-check-updates
new file mode 100755
index 00000000..0a483b76
--- /dev/null
+++ b/bin/ncp-check-updates
@@ -0,0 +1,9 @@
+#!/bin/bash
+ cat > /usr/local/bin/ncp-check-updates <<'EOF'
+VERFILE=/var/run/.ncp-latest-version
+if ncp-test-updates; then
+ echo -e "\nNextCloudPi \e[1m$( cat $VERFILE )\e[0m available!!"
+ echo -e "update through 'nextcloudpi-config' or type 'sudo ncp-update'"
+else
+ echo -e "\nNextCloudPi \e[1m$( cat /usr/local/etc/ncp-version )\e[0m is up to date"
+fi