# HG changeset patch # User Christophe Lincoln # Date 1488319091 -3600 # Node ID 26809676b304f4db07d5beaa00b33bc373a9a798 # Parent 3b1e2a5f6d8500a40a642f0667c5e105621239f1 Fix in users plugin diff -r 3b1e2a5f6d85 -r 26809676b304 plugins/users/users.cgi --- a/plugins/users/users.cgi Tue Feb 28 05:08:44 2017 +0100 +++ b/plugins/users/users.cgi Tue Feb 28 22:58:11 2017 +0100 @@ -176,6 +176,7 @@ user_box account_config="$PEOPLE/$(GET user)/account.conf" profile_config="$PEOPLE/$(GET user)/profile.conf" + # account.conf if [ ! -f "$account_config" ]; then echo "No user profile for: $(GET user)" @@ -183,18 +184,12 @@ else . ${account_config} fi - # Init profile.conf - if [ -f "${profile_config}" ]; then + + # profile.conf + if [ -f "$profile_config" ]; then . ${profile_config} - else - cat > $PEOPLE/$user/profile.conf << EOT -# User profile -WEBSITE="$website" -FACEBOOK="$facebook" -TWITTER="$twitter" -EOT - chmod 0600 $PEOPLE/$user/profile.conf fi + cat << EOT

$(get_gravatar $MAIL) $NAME