Bladeren bron

mailtool has to be run from the bdsmail directory

Bob Mottram 7 jaren geleden
bovenliggende
commit
da55d4d06e
1 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  1. 3
    0
      src/freedombone-app-bdsmail

+ 3
- 0
src/freedombone-app-bdsmail Bestand weergeven

@@ -97,6 +97,7 @@ function add_user_bdsmail {
97 97
     fi
98 98
     sed -i "s|username|$new_username|g" /home/$new_username/.mutt/bdsmail
99 99
     bdsmail_configure_users
100
+    cd $BDSMAIL_DIR
100 101
     $BDSMAIL_DIR/bin/mailtool $BDSMAIL_DIR/config.ini $new_username /home/$new_username/Maildir/i2p
101 102
     chown -R $new_username:$new_username /home/$new_username/.mutt
102 103
     echo '0'
@@ -413,6 +414,7 @@ function install_bdsmail {
413 414
 
414 415
     bdsmail_admin_password="$(create_password ${MINIMUM_PASSWORD_LENGTH})"
415 416
     ${PROJECT_NAME}-pass -u $MY_USERNAME -a bdsmail -p "$bdsmail_admin_password"
417
+    cd $BDSMAIL_DIR
416 418
     $BDSMAIL_DIR/bin/mailtool $BDSMAIL_DIR/config.ini admin $BDSMAIL_DIR/Maildir/i2p/admin "$bdsmail_admin_password"
417 419
 
418 420
     # Create mutt configuration
@@ -439,6 +441,7 @@ function install_bdsmail {
439 441
 
440 442
     bdsmail_configure_users
441 443
 
444
+    cd $BDSMAIL_DIR
442 445
     $BDSMAIL_DIR/bin/mailtool $BDSMAIL_DIR/config.ini $MY_USERNAME /home/$MY_USERNAME/Maildir/i2p
443 446
 
444 447
     APP_INSTALLED=1