diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-06-25 18:54:44 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-06-28 18:44:00 +0300 |
commit | 709cd60612516d128a6c8878548a26a352ae33e4 (patch) | |
tree | 5ddf88e7b52e5de4c58ea291c433fc6289f894f1 | |
parent | c33cabc537f07ebdcecea561287d02aae51388f5 (diff) |
Show current version in MOTD when there is an update availablev0.14.1
-rwxr-xr-x | bin/ncp-check-updates | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/ncp-check-updates b/bin/ncp-check-updates index c30176ab..f3f9bf61 100755 --- a/bin/ncp-check-updates +++ b/bin/ncp-check-updates @@ -2,11 +2,12 @@ # print message if an update is available -VERFILE=/var/run/.ncp-latest-version +VERFILE=/usr/local/etc/ncp-version +LATEST=/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'" + echo -e "\nNextCloudPi \e[1m$( cat $VERFILE)\e[0m is outdated" + echo -e "update to \e[1m$( cat $LATEST )\e[0m 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" + echo -e "\nNextCloudPi \e[1m$( cat $VERFILE)\e[0m is up to date" fi |