Skip to content

Commit

Permalink
nc-snapshot: update btrfs-snp
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Jan 1, 2018
1 parent 6fb4fef commit 2687fdb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ done

## BACKWARD FIXES ( for older images )

# only for image builds
# not for image builds, only live updates
[[ ! -f /.ncp-image ]] && {

# fix automount in latest images
Expand Down Expand Up @@ -194,7 +194,13 @@ y
y
y
EOF
}

# update btrfs-snp
grep -q "btrfs subvolume list" /usr/local/bin/btrfs-snp && {
wget https://raw.githubusercontent.com/nachoparker/btrfs-snp/master/btrfs-snp -O /usr/local/bin/btrfs-snp
chmod +x /usr/local/bin/btrfs-snp
}
} # end - only live updates

exit 0

Expand Down

0 comments on commit 2687fdb

Please sign in to comment.