sum updoots
This commit is contained in:
@@ -67,23 +67,23 @@ printf "changing directory back..."
|
|||||||
cd ..
|
cd ..
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
echo
|
# echo
|
||||||
echo "Enter attribution passphrase:"
|
echo "Enter attribution passphrase:"
|
||||||
read -r -s attribution_passphrase
|
read attribution_passphrase
|
||||||
echo
|
# echo
|
||||||
echo "Enter attribution passphrase again:"
|
# echo "Enter attribution passphrase again:"
|
||||||
read -r -s attribution_passphrase_check
|
# read -r -s attribution_passphrase_check
|
||||||
echo
|
# echo
|
||||||
if [[ "$attribution_passphrase" != "$attribution_passphrase_check" ]]; then
|
# if [[ "$attribution_passphrase" != "$attribution_passphrase_check" ]]; then
|
||||||
echo -e "\n\n\033[0;31mAttribution passphrases do not match! Exiting!\033[0m\n\n" > /dev/null 2>&1
|
# echo -e "\n\n\033[0;31mAttribution passphrases do not match! Exiting!\033[0m\n\n" > /dev/null 2>&1
|
||||||
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"
|
# echo "$attribution_passphrase" > "attribution_passphrase_${unix_seconds}.txt"
|
||||||
fi
|
# fi
|
||||||
unset attribution_passphrase_check > /dev/null 2>&1
|
# unset attribution_passphrase_check > /dev/null 2>&1
|
||||||
{
|
{
|
||||||
printf '%s' "$attribution_passphrase"
|
printf "$attribution_passphrase"
|
||||||
cat "$out_dir/contents.7z"
|
cat "$out_dir/contents.7z"
|
||||||
} | sha512sum | awk '{print $1}' > "$out_dir/attribution-checksum.sha512"
|
} | sha512sum | awk '{print $1}' > "$out_dir/attribution-checksum.sha512"
|
||||||
unset attribution_passphrase > /dev/null 2>&1
|
unset attribution_passphrase > /dev/null 2>&1
|
||||||
@@ -108,28 +108,28 @@ printf "moving out.7z to archives..."
|
|||||||
mv out.7z "archives/verifiable_archive_${unix_seconds}.7z" > /dev/null 2>&1
|
mv out.7z "archives/verifiable_archive_${unix_seconds}.7z" > /dev/null 2>&1
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
echo
|
# echo
|
||||||
echo "input keystore passphrase:"
|
# echo "input keystore passphrase:"
|
||||||
read -r -s keystore_passphrase
|
# read -r -s keystore_passphrase
|
||||||
echo
|
# echo
|
||||||
echo "input keystore passphrase (again):"
|
# echo "input keystore passphrase (again):"
|
||||||
read -r -s keystore_passphrase_check
|
# read -r -s keystore_passphrase_check
|
||||||
echo
|
# echo
|
||||||
if [[ "$keystore_passphrase" != "$keystore_passphrase_check" ]]; then
|
# if [[ "$keystore_passphrase" != "$keystore_passphrase_check" ]]; then
|
||||||
echo -e "\n\n\033[0;31mKeystore passphrases do not match! Exiting!\033[0m\n\n" > /dev/null 2>&1
|
# echo -e "\n\n\033[0;31mKeystore passphrases do not match! Exiting!\033[0m\n\n" > /dev/null 2>&1
|
||||||
exit 1
|
# exit 1
|
||||||
fi
|
# fi
|
||||||
unset keystore_passphrase_check > /dev/null 2>&1
|
# unset keystore_passphrase_check > /dev/null 2>&1
|
||||||
|
|
||||||
printf "archivin keys..."
|
printf "archivin keys..."
|
||||||
7z a "keystore/keystore_${unix_seconds}.7z" -p$keystore_passphrase "private_*" "private_*.pub" "attribution_passphrase_${unix_seconds}.txt" > /dev/null 2>&1
|
7z a "keystore/keystore_${unix_seconds}.7z" "private_*" "private_*.pub" "attribution_passphrase_${unix_seconds}.txt" -p$keystore_passphrase -mhe=on # > /dev/null 2>&1
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
printf "testing key archive..."
|
printf "testing key archive..."
|
||||||
7z t "keystore/keystore_${unix_seconds}.7z" -p$keystore_passphrase > /dev/null 2>&1
|
7z t "keystore/keystore_${unix_seconds}.7z" -p -mhe=on # > /dev/null 2>&1
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
unset keystore_passphrase
|
# unset keystore_passphrase
|
||||||
|
|
||||||
printf "resetting environment..."
|
printf "resetting environment..."
|
||||||
bash reset.sh
|
bash reset.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user