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/nextcloudpi-config')
-rwxr-xr-xbin/nextcloudpi-config7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/nextcloudpi-config b/bin/nextcloudpi-config
index d914121d..f247e516 100755
--- a/bin/nextcloudpi-config
+++ b/bin/nextcloudpi-config
@@ -26,11 +26,14 @@ function nextcloud-config()
test -f $VERFILE || ncp-check-version
# ask for update if outdated
+
+ test -f /usr/local/etc/ncp-changelog && \
+ local CHANGELOG=$( head -4 /usr/local/etc/ncp-changelog )
ncp-test-updates && \
whiptail --backtitle "$BACKTITLE $( cat /usr/local/etc/ncp-version )" \
--title "NextCloudPi update available" \
- --clear --yesno "Update to $( cat $VERFILE )?\n\n\n\nSee changes at\n\nhttps://github.com/nextcloud/nextcloudpi/blob/master/changelog.md" \
- 20 70
+ --clear --yesno "Update to $( cat $VERFILE )?\n\n$CHANGELOG" \
+ 15 70
[[ $? -eq $DIALOG_OK ]] && ncp-update
while true; do