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-06-25 18:54:44 +0300
committernachoparker <nacho@ownyourbits.com>2017-06-28 18:44:00 +0300
commit709cd60612516d128a6c8878548a26a352ae33e4 (patch)
tree5ddf88e7b52e5de4c58ea291c433fc6289f894f1
parentc33cabc537f07ebdcecea561287d02aae51388f5 (diff)
Show current version in MOTD when there is an update availablev0.14.1
-rwxr-xr-xbin/ncp-check-updates9
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