Add email folder for gnusocial when creating new user

This commit is contained in:
Bob Mottram 2016-03-10 10:06:03 +00:00
parent 762b597754
commit b0ddb91430
1 changed files with 4 additions and 3 deletions

View File

@ -267,6 +267,7 @@ if grep -q "install_gnu_social" $COMPLETION_FILE; then
if [ -d /var/www/$MICROBLOG_DOMAIN_NAME ]; then
cd /var/www/$MICROBLOG_DOMAIN_NAME/htdocs
php scripts/registeruser.php -n $MY_USERNAME -w "$NEW_USER_PASSWORD" -e "$MY_USERNAME@$HOSTNAME"
freedombone-addemail -u $MY_USERNAME -e "noreply@$MICROBLOG_DOMAIN_NAME" -g gnusocial --public no
echo $'Created GNU Social user'
else
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
fi
if [ -f /etc/nginx/.htpasswd ]; then
if ! grep "${MY_USERNAME}:" /etc/nginx/.htpasswd; then
echo "$NEW_USER_PASSWORD" | htpasswd -i -s /etc/nginx/.htpasswd $MY_USERNAME
fi
if ! grep "${MY_USERNAME}:" /etc/nginx/.htpasswd; then
echo "$NEW_USER_PASSWORD" | htpasswd -i -s /etc/nginx/.htpasswd $MY_USERNAME
fi
fi
# add user menu on ssh login