diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-04-04 18:19:48 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-04-04 18:38:21 +0300 |
commit | 1c19f4c3620d5bc4b13458306ab29587890e2cee (patch) | |
tree | 07b4da381c0b49429ca11a49657cf72120fd52d6 /bin/ncp-check-updates | |
parent | eaf3fe7c7b4ea61efde1bfacc6437af7ebd497bb (diff) |
fix ncp-update with no internet accessv0.5.6
Diffstat (limited to 'bin/ncp-check-updates')
-rwxr-xr-x | bin/ncp-check-updates | 5 |
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'" |