nc-snapshot-sync: update btrfs-sync

Signed-off-by: nachoparker <nacho@ownyourbits.com>
This commit is contained in:
nachoparker 2019-07-06 15:34:52 -06:00
parent 53d02fe96d
commit 85ebb39c26
3 changed files with 29 additions and 3 deletions

View File

@ -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

View File

@ -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

25
updates/1.15.0.sh Normal file
View File

@ -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