diff options
author | rhatto <rhatto> | 2006-10-06 22:42:25 +0000 |
---|---|---|
committer | rhatto <rhatto> | 2006-10-06 22:42:25 +0000 |
commit | c51760f4f6f5488ca35e875a706991d7396a787e (patch) | |
tree | 205ed558814af3204bde59171f31eed6369cf8f6 | |
parent | b162d5cacde85999353afa87a4210c5b5d42ceab (diff) | |
download | firma-c51760f4f6f5488ca35e875a706991d7396a787e.tar.gz firma-c51760f4f6f5488ca35e875a706991d7396a787e.tar.bz2 |
fixed config file creation
-rwxr-xr-x | firma | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -874,7 +874,7 @@ function NewList { if [ -f "$LIST_CONFIG_FILE" ]; then DeclareGpgVars # removed: MAIL_AGENT=$MAIL_AGENT\nGPG_BINARY=$GPG_BINARY\n - echo -e "LIST_HOMEDIR=\'$LIST_HOMEDIR\'\nLIST_ADDRESS=\'$LIST_ADDRESS\'\nLIST_ADMIN=\'$LIST_ADMIN\'\nPASSPHRASE=\'$PASSPHRASE\'" > $LIST_CONFIG_FILE + echo -e "LIST_HOMEDIR='$LIST_HOMEDIR'\nLIST_ADDRESS='$LIST_ADDRESS'\nLIST_ADMIN='$LIST_ADMIN'\nPASSPHRASE='$PASSPHRASE'" > $LIST_CONFIG_FILE echo "Now generating your keyring..." $GPG --gen-key <<EOF @@ -893,6 +893,7 @@ function NewList { EOF + # TODO: import admin pubkey and send list pubkey to admin chown -R $USER.$GROUP $LIST_HOMEDIR else @@ -1076,9 +1077,10 @@ function CheckPermission { perms=${perms:4:6} if [ "$perms" != "------" ]; then ERROR_MESSAGE="WARNING: Configuration files must not be group or world writable/readable! Dying on file $file" - echo $ERROR_MESSAGE if [[ "$LOG_TO_SYSLOG" == 1 ]]; then echo "$ERROR_MESSAGE" | $LOGGER_BINARY -p "$SYSLOG_PRIORITY" -t "$BASENAME" + else + echo $ERROR_MESSAGE fi return 1 fi |