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
path: root/bin
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-04-04 17:49:23 +0300
committernachoparker <nacho@ownyourbits.com>2017-04-04 18:19:56 +0300
commiteaf3fe7c7b4ea61efde1bfacc6437af7ebd497bb (patch)
tree024809257e63a15d673ab4db1bf6c81d42381bef /bin
parentb70330bfa591ed26c9a6a255ae4c4986cb367be5 (diff)
fix print version nextcloudpi-configv0.5.5
Diffstat (limited to 'bin')
-rwxr-xr-xbin/nextcloudpi-config7
1 files changed, 3 insertions, 4 deletions
diff --git a/bin/nextcloudpi-config b/bin/nextcloudpi-config
index 464b26ae..176daf3f 100755
--- a/bin/nextcloudpi-config
+++ b/bin/nextcloudpi-config
@@ -18,9 +18,8 @@ function nextcloud-config()
{
local DIALOG_OK=0
local LIST=()
- local VERSION=$( cat /usr/local/etc/ncp-version )
local VERFILE=/var/run/.ncp-latest-version
- local BACKTITLE="NextCloudPi configuration ver. $VERSION"
+ local BACKTITLE="NextCloudPi configuration ver. "
local CONFDIR=/usr/local/etc/nextcloudpi-config.d/
# save latest version if it has never done before
@@ -28,7 +27,7 @@ function nextcloud-config()
# ask for update if outdated
ncp-test-updates && \
- whiptail --backtitle "$BACKTITLE" \
+ whiptail --backtitle "$BACKTITLE $( cat /usr/local/etc/ncp-version )" \
--title "NextCloudPi update available" \
--clear --yesno "Update to $( cat $VERFILE )?" \
10 40
@@ -40,7 +39,7 @@ function nextcloud-config()
LIST+=( $( basename $item .sh ) "$DESC" )
done
local script
- script=$( whiptail --backtitle "$BACKTITLE" \
+ script=$( whiptail --backtitle "$BACKTITLE $( cat /usr/local/etc/ncp-version )" \
--title "NextCloudPi Software Configuration Tool (nextcloudpi-config)" \
--cancel-button Finish --ok-button Select \
--menu "Select program to configure and activate:" 20 100 10 \