aboutsummaryrefslogtreecommitdiff
path: root/systemd-zfs-partition-backup
diff options
context:
space:
mode:
authorMax Christian Pohle2020-07-11 17:07:38 +0200
committerMax Christian Pohle2020-07-11 17:07:38 +0200
commit0e9425a2389e4126728579e9a6e20c793933efdb (patch)
treed3d484e3b7a9ffbeb578e692217159f345a0bd4b /systemd-zfs-partition-backup
parent76e0da0ef07a921e27b12a447692d1e952d922f4 (diff)
downloadzfs-bash-tools-0e9425a2389e4126728579e9a6e20c793933efdb.tar.bz2
zfs-bash-tools-0e9425a2389e4126728579e9a6e20c793933efdb.zip
The script now searched for a dataset first
Diffstat (limited to 'systemd-zfs-partition-backup')
-rw-r--r--systemd-zfs-partition-backup/AUR/PKGBUILD5
-rwxr-xr-xsystemd-zfs-partition-backup/AUR/getsha256sum.sh21
2 files changed, 24 insertions, 2 deletions
diff --git a/systemd-zfs-partition-backup/AUR/PKGBUILD b/systemd-zfs-partition-backup/AUR/PKGBUILD
index f9d7315..918497f 100644
--- a/systemd-zfs-partition-backup/AUR/PKGBUILD
+++ b/systemd-zfs-partition-backup/AUR/PKGBUILD
@@ -12,8 +12,9 @@ depends=(
12 'kbd' 12 'kbd'
13 'mkinitcpio' 13 'mkinitcpio'
14) 14)
15source=("http://git.entwicklerseite.de/zfs-bash-tools/snapshot/zfs-bash-tools-master.tar.bz2") 15source=("http://git.entwicklerseite.de/zfs-bash-tools/snapshot/zfs-bash-tools-master.tar.gz")
16sha256sums=('a734c145709687c5621f430d3baec3105977984dfbb35348beab4b793aeb8e1b') 16sha256sums=('80c5a14dbbccc1f0164557cf2f4f31ab45c3b08aa577e60a54d198bac01ca91b')
17echo "test"
17 18
18package() { 19package() {
19 install -D zfs-bash-tools-master/${pkgname}.sh ../pkg/${pkgname}/usr/bin/${pkgname}.sh 20 install -D zfs-bash-tools-master/${pkgname}.sh ../pkg/${pkgname}/usr/bin/${pkgname}.sh
diff --git a/systemd-zfs-partition-backup/AUR/getsha256sum.sh b/systemd-zfs-partition-backup/AUR/getsha256sum.sh
new file mode 100755
index 0000000..92760b3
--- /dev/null
+++ b/systemd-zfs-partition-backup/AUR/getsha256sum.sh
@@ -0,0 +1,21 @@
1#!/usr/bin/bash
2# source PKGBUILD
3# function allsha() {
4# for i in $source
5# do
6# printf "'%s' " "$(wget -q -O- "$i" | sha256sum | awk '/-$/{ print $1 }')"
7# done
8# }
9#
10# allsha | tee /tmp/output.txt
11
12
13ARCHIVE=$(mktemp --suffix=.tar.bz2)
14
15cd $(git rev-parse --show-toplevel)
16git archive -o "$ARCHIVE" master
17cd - > /dev/null
18
19cat $ARCHIVE | sha256sum | awk '/-$/{ print $1 }'
20rm $ARCHIVE
21
..