Browse Source

Add email folder for gnusocial when creating new user

Bob Mottram 9 years ago
parent
commit
b0ddb91430
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      src/freedombone-adduser

+ 4
- 3
src/freedombone-adduser View File

@@ -267,6 +267,7 @@ if grep -q "install_gnu_social" $COMPLETION_FILE; then
267 267
     if [ -d /var/www/$MICROBLOG_DOMAIN_NAME ]; then
268 268
         cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
269 269
         php scripts/registeruser.php -n $MY_USERNAME -w "$NEW_USER_PASSWORD" -e "$MY_USERNAME@$HOSTNAME"
270
+        freedombone-addemail -u $MY_USERNAME -e "noreply@$MICROBLOG_DOMAIN_NAME" -g gnusocial --public no
270 271
         echo $'Created GNU Social user'
271 272
     else
272 273
         echo $"Unable to find GNU Social installation at /var/www/$MICROBLOG_DOMAIN_NAME/htdocs"
@@ -366,9 +367,9 @@ if grep -q "install_irc_client" $COMPLETION_FILE; then
366 367
 fi
367 368
 
368 369
 if [ -f /etc/nginx/.htpasswd ]; then
369
-	if ! grep "${MY_USERNAME}:" /etc/nginx/.htpasswd; then
370
-		echo "$NEW_USER_PASSWORD" | htpasswd -i -s /etc/nginx/.htpasswd $MY_USERNAME
371
-	fi
370
+    if ! grep "${MY_USERNAME}:" /etc/nginx/.htpasswd; then
371
+        echo "$NEW_USER_PASSWORD" | htpasswd -i -s /etc/nginx/.htpasswd $MY_USERNAME
372
+    fi
372 373
 fi
373 374
 
374 375
 # add user menu on ssh login