Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Aegir creates user 1 with the name of admin. This makes the user creation in the Watershed Now profile conflict.
I changed the uid 1 name to admin and uid 3 to web_admin.
I did not change the name of the author in _watershednow_add_sample_update_feed()
Side note - To install in Aegir I also had to apply this patch to signup module - http://drupal.org/node/824232#comment-3074690
Comment | File | Size | Author |
---|---|---|---|
#6 | watershednow-1019876-6.patch | 1.72 KB | joestewart |
#1 | watershednow_profile-1019876-1.patch | 1.4 KB | joestewart |
Comments
Comment #1
joestewart CreditAttribution: joestewart commentedComment #2
seanberto CreditAttribution: seanberto commentedI don't like making this change b/c I've never thought that it was intuitive that the super user has the most generic username /ever/. Whining, it's also going to through off my support process with existing clients....But that's okay.
The fix is made with: e2cba03..1a62711 master -> master
Love to talk with you about your Aegir deployments for this distro sometime.
Comment #3
joestewart CreditAttribution: joestewart commentedMy first patch didn't change user 1. It renamed user 3 from admin. And then also changed the author on the feed node.
Didn't really have a good feel for which was best so submitted the more simple one.
Comment #4
seanberto CreditAttribution: seanberto commentedHuh, as far as I read that patch file, it does rename user 1 from watershednow to admin. That was intentional, right? Re: node creation, not a bit deal.
Comment #5
seanberto CreditAttribution: seanberto commentedComment #6
joestewart CreditAttribution: joestewart commentedah, sorry for not being clear. I submitted my second version of changes because it only changed one file. I've tried to create the first version again to explain better. It is untested and was generated from the watershednow profile directory,
edit: as far as the changed username, it could be anything other than "admin", like "web_admin", "web admin" or something totally different.
Comment #7
seanberto CreditAttribution: seanberto commentedAha. that's interesting. What happens if, via Profiler module, the setup of user 1 is also defined in the install profile? Regardless of the username on the account, does Aegir barf?
Comment #8
joestewart CreditAttribution: joestewart commentedPretty sure it renames the user 1. I went and looked at what it was doing -
http://git.aegirproject.org/?p=provision.git;a=blob;f=platform/drupal/in... ( couldn't find a display for git blame)
52 // create the admin account
53 $account = user_load(1);
54 $edit['name'] = 'admin';
55 $edit['pass'] = user_password();
56 $edit['mail'] = $client_email;
57 $edit['status'] = 1;
I can't test right now, but will try later. Might also bring up with aegir folks if user 1 is defined by the profile, then maybe just stay out of the way instead.