releas?
This commit is contained in:
@@ -42,12 +42,12 @@ reset() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "autoshredding out..."
|
echo "autoshredding out..."
|
||||||
srm -r -z -l -l "$out_dir"
|
srm -r -z -l -l "$out_dir" > /dev/null 2>&1
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
echo "rebuilding out..."
|
echo "rebuilding out..."
|
||||||
printf "making out dir structure..."
|
printf "making out dir structure..."
|
||||||
mkdir -p "$inner_dir"
|
mkdir -p "$inner_dir" > /dev/null 2>&1
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
printf "updating $inner_dir/READMD.md..."
|
printf "updating $inner_dir/READMD.md..."
|
||||||
@@ -55,45 +55,45 @@ reset() {
|
|||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
printf "updating $out_dir/README.md..."
|
printf "updating $out_dir/README.md..."
|
||||||
echo "# todo: make this nice" > "$out_dir/README.md"
|
echo "# todo: make this nice" > "$out_dir/README.md"
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
printf "making "$out_dir"/test_validate_passphrase.sh..."
|
printf "making "$out_dir"/test_validate_passphrase.sh..."
|
||||||
cp test_validate_passphrase.txt "$out_dir/test_validate_passphrase.sh"
|
cp test_validate_passphrase.txt "$out_dir/test_validate_passphrase.sh" > /dev/null 2>&1
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
printf "making $out_dir/test_validate_passphrase.sh executable..."
|
printf "making $out_dir/test_validate_passphrase.sh executable..."
|
||||||
chmod +x "$out_dir/test_validate_passphrase.sh"
|
chmod +x "$out_dir/test_validate_passphrase.sh" > /dev/null 2>&1
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
printf "making $out_dir/verify-everything.sh..."
|
printf "making $out_dir/verify-everything.sh..."
|
||||||
cp verify-everything.txt "$out_dir"/verify-everything.sh
|
cp verify-everything.txt "$out_dir"/verify-everything.sh > /dev/null 2>&1
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
printf "making $out_dir/verify-everything.sh executable"...
|
printf "making $out_dir/verify-everything.sh executable"...
|
||||||
chmod +x "$out_dir/verify-everything.sh"
|
chmod +x "$out_dir/verify-everything.sh" > /dev/null 2>&1
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
housekeeping_dirs=("archives" "keystore")
|
housekeeping_dirs=("archives" "keystore")
|
||||||
for dir in "${housekeeping_dirs[@]}"; do
|
for dir in "${housekeeping_dirs[@]}"; do
|
||||||
printf "changing ownership of $dir to ${USER}..."
|
printf "changing ownership of $dir to ${USER}..."
|
||||||
chown $USER:$USER -R "$dir"
|
chown $USER:$USER -R "$dir" > /dev/null 2>&1
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
printf "changing permissions on $dir to 700..."
|
printf "changing permissions on $dir to 700..."
|
||||||
chmod 700 "$dir"
|
chmod 700 "$dir" > /dev/null 2>&1
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
printf "finding and shredding erroneous dirs in ${dir}..."
|
printf "finding and shredding erroneous dirs in ${dir}..."
|
||||||
find "$dir" -type d -exec srm -r -z -l -l "{}" \;
|
find "$dir" -mindepth 1 -type d -exec srm -r -z -l -l "{}" \; > /dev/null 2>&1
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
printf "finding and shredding erronious files in ${dir}..."
|
printf "finding and shredding erronious files in ${dir}..."
|
||||||
find "$dir" -type f \( -name "private_ed25519_*" -o -name "attribution_passphrase_*" \) -exec shred -uz "{}" \;
|
find "$dir" -type f \( -name "private_ed25519_*" -o -name "attribution_passphrase_*" \) -exec shred -uz "{}" \; > /dev/null 2>&1
|
||||||
checkcode $?
|
checkcode $?
|
||||||
|
|
||||||
printf "changing perms of files in $dir to 600..."
|
printf "changing perms of files in $dir to 600..."
|
||||||
find "$dir" -type f -exec chmod 600 "{}" \;
|
find "$dir" -type f -exec chmod 600 "{}" \; > /dev/null 2>&1
|
||||||
checkcode $?
|
checkcode $?
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user