diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-04-03 20:59:44 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-04-03 21:28:26 +0300 |
commit | 9b5cd8126f05a8151e78410df994c00a20c49f75 (patch) | |
tree | d74190d05cc1103969bb482d183037d627a50c9e /bin/ncp-check-updates | |
parent | 138fecc9f67eb2aaba6c50bf39cf22a16891f7c8 (diff) |
check for updates (and update) upon launching nextcloudpi-configv0.5.3
Diffstat (limited to 'bin/ncp-check-updates')
-rwxr-xr-x | bin/ncp-check-updates | 9 |
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 |