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-04 18:19:48 +0300
committernachoparker <nacho@ownyourbits.com>2017-04-04 18:38:21 +0300
commit1c19f4c3620d5bc4b13458306ab29587890e2cee (patch)
tree07b4da381c0b49429ca11a49657cf72120fd52d6 /bin/ncp-check-updates
parenteaf3fe7c7b4ea61efde1bfacc6437af7ebd497bb (diff)
fix ncp-update with no internet accessv0.5.6
Diffstat (limited to 'bin/ncp-check-updates')
-rwxr-xr-xbin/ncp-check-updates5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/ncp-check-updates b/bin/ncp-check-updates
index 0a483b76..c30176ab 100755
--- a/bin/ncp-check-updates
+++ b/bin/ncp-check-updates
@@ -1,6 +1,9 @@
#!/bin/bash
- cat > /usr/local/bin/ncp-check-updates <<'EOF'
+
+# print message if an update is available
+
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'"