This commit is contained in:
Bob Mottram 2015-07-01 23:00:46 +01:00
parent fbbb8fd691
commit 7b6cd7ad38
3 changed files with 9 additions and 1 deletions

View File

@ -87,6 +87,7 @@ MEDIAGOBLIN_DOMAIN_NAME=
MEDIAGOBLIN_CODE=
USB_DRIVE=/dev/sdb1
HWRNG_TYPE=
ENABLE_SOCIAL_KEY_MANAGEMENT=
CONFIGURATION_FILE=
@ -222,6 +223,9 @@ function save_configuration_file {
if [ $HWRNG_TYPE ]; then
echo "HWRNG=$HWRNG" >> $CONFIGURATION_FILE
fi
if [ $ENABLE_SOCIAL_KEY_MANAGEMENT ]; then
echo "ENABLE_SOCIAL_KEY_MANAGEMENT=$ENABLE_SOCIAL_KEY_MANAGEMENT" >> $CONFIGURATION_FILE
fi
}
# test a domain name to see if it's valid

View File

@ -153,6 +153,10 @@ function interactive_configuration_remote_backups {
if [ -f $FRIENDS_SERVERS_LIST ]; then
chown $MY_USERNAME:$MY_USERNAME $FRIENDS_SERVERS_LIST
fi
if [[ ${entering_remote_backups_ctr} > 3 ]]; then
fi
}
function show_result {

View File

@ -136,7 +136,7 @@ echo "$PASSPHRASE" | ssss-split -q -t $KEY_FRAGMENTS -n $KEY_FRAGMENTS > \
/home/$MY_USERNAME/.gnupg_fragments/shares.txt
# (maybe) overwrite passphrase after use
PASSPHRASE=$(openssl rand -base64 64)
PASSPHRASE="$(openssl rand -base64 100)"
# check that passphrase shares were created
if [ ! -f /home/$MY_USERNAME/.gnupg_fragments/shares.txt ]; then