From 85ebb39c2694ae7d076d8cb9a070c4b42c62480a Mon Sep 17 00:00:00 2001 From: nachoparker Date: Sat, 6 Jul 2019 15:34:52 -0600 Subject: nc-snapshot-sync: update btrfs-sync Signed-off-by: nachoparker --- changelog.md | 4 +++- run_update_history.sh | 3 +-- updates/1.15.0.sh | 25 +++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 updates/1.15.0.sh diff --git a/changelog.md b/changelog.md index 9f3d05bd..f42af447 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,7 @@ -[v1.14.2](https://github.com/nextcloud/nextcloudpi/commit/60898da) (2019-07-06) nc-hdd-monitor: fix detection +[v1.14.3](https://github.com/nextcloud/nextcloudpi/commit/6a78953) (2019-07-06) nc-snapshot-sync: update btrfs-sync + +[v1.14.2](https://github.com/nextcloud/nextcloudpi/commit/53d02fe) (2019-07-06) nc-hdd-monitor: fix detection [v1.14.0 ](https://github.com/nextcloud/nextcloudpi/commit/fa9ddca) (2019-07-05) upgrade to NC16.0.2 diff --git a/run_update_history.sh b/run_update_history.sh index 1b5558b0..d899950b 100755 --- a/run_update_history.sh +++ b/run_update_history.sh @@ -99,10 +99,9 @@ if is_more_recent_than "$latest_checkpoint_version" "$current_version" ; then for(( i="$starting_checkpoint"; i<="$end_of_list"; i++)); do update_file=${updates_list[$i]} tag_update=$( basename "$update_file" .sh ) - echo -e "Updating system to version $tag_update . . ." bash "$updates_dir/$update_file" || exit 1 echo "v$tag_update" > /usr/local/etc/ncp-version - echo -e "System updated successfully to version v$tag_update" + [[ $i != $end_of_list ]] && echo -e "NextCloudPi updated to version v$tag_update" || true done fi diff --git a/updates/1.15.0.sh b/updates/1.15.0.sh new file mode 100644 index 00000000..8d79e30d --- /dev/null +++ b/updates/1.15.0.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +set -e + +## BACKWARD FIXES ( for older images ) + +source /usr/local/etc/library.sh + +# not for image builds, only live updates +[[ ! -f /.ncp-image ]] && { + + # docker images only + [[ -f /.docker-image ]] && { + : + } + + # for non docker images + [[ ! -f /.docker-image ]] && { + # Update btrfs-sync + wget -q https://raw.githubusercontent.com/nachoparker/btrfs-sync/master/btrfs-sync -O /usr/local/bin/btrfs-sync + } + +} # end - only live updates + +exit 0 -- cgit v1.2.3