"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packaging/common/post_inst_functions.sh" between
amanda-tag-community-3.5.2.tar.gz and amanda-tag-community-3.5.3.tar.gz

About: Amanda is a backup system designed to archive many computers on a network to a single large-capacity tape drive.

post_inst_functions.sh  (amanda-tag-community-3.5.2):post_inst_functions.sh  (amanda-tag-community-3.5.3)
skipping to change at line 118 skipping to change at line 118
log_output_of chmod 0600 ${AMANDAHOMEDIR}/.am_passphrase || \ log_output_of chmod 0600 ${AMANDAHOMEDIR}/.am_passphrase || \
{ logger "WARNING: Could not fix permissions on .am_passphrase" ; retur n 1; } { logger "WARNING: Could not fix permissions on .am_passphrase" ; retur n 1; }
} }
create_amkey() { create_amkey() {
[ -f ${AMANDAHOMEDIR}/.am_passphrase ] || \ [ -f ${AMANDAHOMEDIR}/.am_passphrase ] || \
{ logger "Error: ${AMANDAHOMEDIR}/.am_passphrase is missing, can't creat e amcrypt key."; return 1; } { logger "Error: ${AMANDAHOMEDIR}/.am_passphrase is missing, can't creat e amcrypt key."; return 1; }
logger "Creating encryption key for amcrypt" logger "Creating encryption key for amcrypt"
if [ ! -f ${AMANDAHOMEDIR}/.gnupg/am_key.gpg ]; then if [ ! -f ${AMANDAHOMEDIR}/.gnupg/am_key.gpg ]; then
# TODO: don't write this stuff to disk! # TODO: don't write this stuff to disk!
get_random_lines 50 >${AMANDAHOMEDIR}/.gnupg/am_key || return 1 get_random_lines 65 >${AMANDAHOMEDIR}/.gnupg/am_key || return 1
GPG2=`command -v gpg2 2>/dev/null` GPG2=`command -v gpg2 2>/dev/null`
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then
GPG=`command -v gpg 2>/dev/null` GPG=`command -v gpg 2>/dev/null`
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then
logger "Error: no gpg" logger "Error: no gpg"
else else
GPG_EXTRA="--no-use-agent" GPG_EXTRA="--no-use-agent"
fi fi
else else
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)