sum updoots
This commit is contained in:
@@ -56,7 +56,7 @@ reset() {
|
||||
checkcode $?
|
||||
|
||||
printf "making "$out_dir"/test_validate_passphrase.sh..."
|
||||
cp test_validation_passphrase.txt "$out_dir/test_validate_passphrase.sh"
|
||||
cp test_validate_passphrase.txt "$out_dir/test_validate_passphrase.sh"
|
||||
checkcode $?
|
||||
printf "making $out_dir/test_validate_passphrase.sh executable..."
|
||||
chmod +x "$out_dir/test_validate_passphrase.sh"
|
||||
@@ -67,6 +67,22 @@ reset() {
|
||||
printf "making $out_dir/verify-everything.sh executable"...
|
||||
chmod +x "$out_dir/verify-everything.sh"
|
||||
checkcode $?
|
||||
|
||||
housekeeping_dirs=("archives" "keystore")
|
||||
for dir in "${housekeeping_dirs[@]}"; do
|
||||
printf "changing ownership of $dir to ${USER}..."
|
||||
chown $USER:$USER -R "$dir"
|
||||
checkcode $?
|
||||
printf "changing permissions on $dir to 700..."
|
||||
chmod 700 "$dir"
|
||||
checkcode $?
|
||||
printf "finding and shredding erroneous dirs in ${dir}..."
|
||||
find "$dir" -mindepth 1 -type d -exec srm -r -z -l -l "{}" \;
|
||||
checkcode $?
|
||||
printf "changing perms of files in $dir to 600..."
|
||||
find "$dir" -type f -exec chmod 600 "{}" \;
|
||||
checkcode $?
|
||||
done
|
||||
}
|
||||
|
||||
printf "setting up environment..."
|
||||
|
||||
Reference in New Issue
Block a user