* Adding new users AUTOMATED. * Update docs for the new, more simplified installation processes. * Remove dependency on any particular paths, etc. Copy "bin" into a place along your path and everything should "just work". * Add support for Mercurial (not tested). * blackbox_addadmin now adds keys to the keyring for you. * Unified #! lines to "#!/usr/bin/env bash" so it works better on FreeBSD. * BUGFIX: (BugId#1) blackbox_update_all_files.sh expects hg, fails for git. * BUGFIX: (BugId#2) blackbox_postdeploy.sh assumes certain directory layout. * BUGFIX: Temporary files aren't deleted. * NEW FILE: bin/blackbox_initialize: Automates enabling BB for a repo (creates directories, files, and updates .gitignore). * NEW FILE: bin/blackbox_removeadmin: Automates removing an admit. * NEW FILE: tools/confidence_test.sh: A battery of tests to verify operations. * NEW FILE: bin/Makefile: Automate package creation. * NEW FILE: bin/_stack_lib.sh: A library of shell routines from StackExchange.
20 lines
459 B
Bash
Executable File
20 lines
459 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
#
|
|
# blackbox_edit_start.sh -- Decrypt a file for editing.
|
|
#
|
|
|
|
. _blackbox_common.sh
|
|
|
|
for param in """$@""" ; do
|
|
unencrypted_file=$(get_unencrypted_filename "$param")
|
|
encrypted_file=$(get_encrypted_filename "$param")
|
|
|
|
fail_if_not_on_cryptlist "$unencrypted_file"
|
|
fail_if_not_exists "$encrypted_file" "This should not happen."
|
|
rm -f "$unencrypted_file"
|
|
|
|
prepare_keychain
|
|
decrypt_file "$encrypted_file" "$unencrypted_file"
|
|
done
|