releas?
This commit is contained in:
@@ -42,12 +42,12 @@ reset() {
|
||||
fi
|
||||
|
||||
echo "autoshredding out..."
|
||||
srm -r -z -l -l "$out_dir"
|
||||
srm -r -z -l -l "$out_dir" > /dev/null 2>&1
|
||||
checkcode $?
|
||||
|
||||
echo "rebuilding out..."
|
||||
printf "making out dir structure..."
|
||||
mkdir -p "$inner_dir"
|
||||
mkdir -p "$inner_dir" > /dev/null 2>&1
|
||||
checkcode $?
|
||||
|
||||
printf "updating $inner_dir/READMD.md..."
|
||||
@@ -55,45 +55,45 @@ reset() {
|
||||
checkcode $?
|
||||
|
||||
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 $?
|
||||
|
||||
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 $?
|
||||
|
||||
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 $?
|
||||
|
||||
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 $?
|
||||
|
||||
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 $?
|
||||
|
||||
housekeeping_dirs=("archives" "keystore")
|
||||
for dir in "${housekeeping_dirs[@]}"; do
|
||||
printf "changing ownership of $dir to ${USER}..."
|
||||
chown $USER:$USER -R "$dir"
|
||||
chown $USER:$USER -R "$dir" > /dev/null 2>&1
|
||||
checkcode $?
|
||||
|
||||
printf "changing permissions on $dir to 700..."
|
||||
chmod 700 "$dir"
|
||||
chmod 700 "$dir" > /dev/null 2>&1
|
||||
checkcode $?
|
||||
|
||||
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 $?
|
||||
|
||||
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 $?
|
||||
|
||||
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 $?
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user