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
|
exit 1
|
||||||
else
|
else
|
||||||
echo -e "attribution_passphrase: \033[0;32mOK!\033[0m"
|
echo -e "attribution_passphrase: \033[0;32mOK!\033[0m"
|
||||||
|
echo "$attribution_passphrase" > "attribution_passphrase_${unix_seconds}.txt
|
||||||
fi
|
fi
|
||||||
unset attribution_passphrase_check
|
unset attribution_passphrase_check
|
||||||
|
unset attribution_passphrase
|
||||||
{
|
{
|
||||||
printf '%s' "$attribution_passphrase"
|
printf '%s' "$attribution_passphrase"
|
||||||
cat "$out_dir/contents.7z"
|
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"
|
# printf "sanity checking: changing working directory to $out_dir"
|
||||||
cd "$out_dir"
|
# cd "$out_dir"
|
||||||
checkcode $?
|
# checkcode $?
|
||||||
printf "sanity checking: verification"
|
# printf "sanity checking: verification"
|
||||||
bash verify-everything.sh
|
# bash verify-everything.sh
|
||||||
checkcode $?
|
# checkcode $?
|
||||||
printf "sanity checking: validate attribution passphrase"
|
# printf "sanity checking: validate attribution passphrase"
|
||||||
bash test_validation_passphrase.sh
|
# bash test_validation_passphrase.sh
|
||||||
checkcode $?
|
# checkcode $?
|
||||||
printf "sanity checking: returning"
|
# printf "sanity checking: returning"
|
||||||
cd ..
|
# cd ..
|
||||||
checkcode $?
|
# checkcode $?
|
||||||
|
|
||||||
printf "7z archiving outer dir"
|
printf "7z archiving outer dir"
|
||||||
7z a "./out.7z" "$out_dir"
|
7z a "./out.7z" "$out_dir"
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
# Keystore
|
|
||||||
Stores encrypted ssh keys and attribution passphrases here in 7z format
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
attrib_hash=$(cat "./attribution.sha512")
|
attrib_hash=$(cat "./attribution-checksum.sha512")
|
||||||
|
|
||||||
echo "enter passphrase to test"
|
echo "enter passphrase to test"
|
||||||
read passphrase
|
read passphrase
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
attrib_hash=$(cat "./attribution.sha512")
|
attrib_hash=$(cat "./attribution-checksum.sha512")
|
||||||
|
|
||||||
echo "enter passphrase to test"
|
echo "enter passphrase to test"
|
||||||
read passphrase
|
read passphrase
|
||||||
|
|||||||
Reference in New Issue
Block a user