cleanup
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
archives/*
|
||||
!archives/README.md
|
||||
keystores/*
|
||||
!keystores/README.md
|
||||
out/*
|
||||
!out/README.md
|
||||
out/contents/*
|
||||
!out/contents/README.md
|
||||
|
||||
*.sha256
|
||||
*.sha512*
|
||||
*private_*
|
||||
*.pub*
|
||||
*.7z*
|
||||
*.sig*
|
||||
*/checksums.sha512
|
||||
*/attribution-checksums.sha512
|
||||
@@ -69,26 +69,29 @@ if [[ "$attribution_passphrase" != "$attribution_passphrase_check" ]]; then
|
||||
exit 1
|
||||
else
|
||||
echo -e "attribution_passphrase: \033[0;32mOK!\033[0m"
|
||||
echo "$attribution_passphrase" > "attribution_passphrase_${unix_seconds}.txt
|
||||
fi
|
||||
unset attribution_passphrase_check
|
||||
unset attribution_passphrase
|
||||
{
|
||||
printf '%s' "$attribution_passphrase"
|
||||
cat "$out_dir/contents.7z"
|
||||
} | sha512sum | awk '{print $1}' > "$out_dir/attribution.sha512"
|
||||
} | sha512sum | awk '{print $1}' > "$out_dir/attribution-checksum.sha512"
|
||||
|
||||
printf "sanity checking: changing working directory to $out_dir"
|
||||
cd "$out_dir"
|
||||
checkcode $?
|
||||
printf "sanity checking: verification"
|
||||
bash verify-everything.sh
|
||||
checkcode $?
|
||||
printf "sanity checking: validate attribution passphrase"
|
||||
bash test_validation_passphrase.sh
|
||||
checkcode $?
|
||||
printf "sanity checking: returning"
|
||||
cd ..
|
||||
checkcode $?
|
||||
# printf "sanity checking: changing working directory to $out_dir"
|
||||
# cd "$out_dir"
|
||||
# checkcode $?
|
||||
# printf "sanity checking: verification"
|
||||
# bash verify-everything.sh
|
||||
# checkcode $?
|
||||
# printf "sanity checking: validate attribution passphrase"
|
||||
# bash test_validation_passphrase.sh
|
||||
# checkcode $?
|
||||
# printf "sanity checking: returning"
|
||||
# cd ..
|
||||
# checkcode $?
|
||||
|
||||
printf "7z archiving outer dir"
|
||||
7z a "./out.7z" "$out_dir"
|
||||
checkcode $?
|
||||
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# Keystore
|
||||
Stores encrypted ssh keys and attribution passphrases here in 7z format
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
attrib_hash=$(cat "./attribution.sha512")
|
||||
attrib_hash=$(cat "./attribution-checksum.sha512")
|
||||
|
||||
echo "enter passphrase to test"
|
||||
read passphrase
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
attrib_hash=$(cat "./attribution.sha512")
|
||||
attrib_hash=$(cat "./attribution-checksum.sha512")
|
||||
|
||||
echo "enter passphrase to test"
|
||||
read passphrase
|
||||
|
||||
Reference in New Issue
Block a user