aboutsummaryrefslogtreecommitdiff
path: root/firma
diff options
context:
space:
mode:
authorrhatto <rhatto>2006-10-06 22:42:25 +0000
committerrhatto <rhatto>2006-10-06 22:42:25 +0000
commitc51760f4f6f5488ca35e875a706991d7396a787e (patch)
tree205ed558814af3204bde59171f31eed6369cf8f6 /firma
parentb162d5cacde85999353afa87a4210c5b5d42ceab (diff)
downloadfirma-c51760f4f6f5488ca35e875a706991d7396a787e.tar.gz
firma-c51760f4f6f5488ca35e875a706991d7396a787e.tar.bz2
fixed config file creation
Diffstat (limited to 'firma')
-rwxr-xr-xfirma6
1 files changed, 4 insertions, 2 deletions
diff --git a/firma b/firma
index c14f3f6..a3254cc 100755
--- a/firma
+++ b/firma
@@ -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