Commit 352b66db authored by Joanne Hugé's avatar Joanne Hugé

playbook/util: add update-sha256sum script

parent f58b80be
Pipeline #28723 passed with stage
in 0 seconds
fc085ff3a6ec4b99b7baff843ace3c10d82bbdd70297ad86a45a31f24fa3fc2b - 01a465187b01a1e432de5d68b0b50d92b7b4c5a7d54b7ee114a37f7e35983ec3 -
playbook_dir="$(dirname $(realpath $0))/.."
cd $playbook_dir
find . -type f ! -name 'sha256sum' -print0 | LC_ALL=C sort -z | xargs -0 sha256sum | sha256sum > sha256sum
...@@ -3,5 +3,5 @@ conf=${1:-/etc/opt/slapcache.cfg} ...@@ -3,5 +3,5 @@ conf=${1:-/etc/opt/slapcache.cfg}
conf=$(realpath $conf) conf=$(realpath $conf)
cd $playbook_dir cd $playbook_dir
find . -type f ! -name 'sha256sum' -print0 | LC_ALL=C sort -z | xargs -0 sha256sum | sha256sum > sha256sum util/update-sha256sum
rm -f /tmp/archive.tar.gz && tar -czvf /tmp/archive.tar.gz . && slapcache-upload --file=/tmp/archive.tar.gz --slapos-configuration=$conf rm -f /tmp/archive.tar.gz && tar -czvf /tmp/archive.tar.gz . && slapcache-upload --file=/tmp/archive.tar.gz --slapos-configuration=$conf
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment