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:
Diffstat (limited to 'bin/ncp-config')
-rwxr-xr-xbin/ncp-config4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ncp-config b/bin/ncp-config
index f3ed02c9..fea145ae 100755
--- a/bin/ncp-config
+++ b/bin/ncp-config
@@ -15,13 +15,13 @@ BINDIR=/usr/local/bin/ncp
source /usr/local/etc/library.sh
{
- latest_ver="$(cat /var/run/.ncp-latest-version)"
- ncpversion="$(cat /usr/local/etc/ncp-version )"
+ ncpversion="$(cat /usr/local/etc/ncp-version)"
chlogfile=/usr/local/etc/ncp-changelog
# ask for update if outdated
ncp-test-updates 2>/dev/null && {
[[ -f "$chlogfile" ]] && changelog=$( head -4 "$chlogfile" )
+ latest_ver="$(cat /var/run/.ncp-latest-version 2>/dev/null)"
whiptail --backtitle "$backtitle $ncpversion" \
--title "NextCloudPi update available" \
--clear --yesno "Update to $latest_ver?\n\n$changelog" \