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.
After solving #2821401: Clients can select unavailable platforms during site creation, it might be an idea to have the hostmaster profile automatically created as a locked platform. This would prevent user from accidentally creating a site on it.
Another solution would be to exclusively designate it to admin clients by default, but that checks seems not to be working either.
Comment | File | Size | Author |
---|---|---|---|
#6 | lock_the_hostmaster-2821402-6.patch | 3.5 KB | helmo |
Comments
Comment #2
Neograph734Comment #3
Neograph734Comment #4
Neograph734After creating the patch for #2821401: Clients can select unavailable platforms during site creation, it turns out the hostmaster profile is already hidden for regular clients. So there is no need for this.
Comment #5
helmo CreditAttribution: helmo as a volunteer and at Initfour websolutions for Aegir Cooperative commentedThis is actually not such a strange idea,
This patch is also in https://github.com/aegir-project/provision/pull/11 , see
https://github.com/aegir-project/provision/pull/11/commits/7ff825a21f99d...
Comment #6
helmo CreditAttribution: helmo as a volunteer and at Initfour websolutions for Aegir Cooperative commentedComment #7
memtkmcc CreditAttribution: memtkmcc at Omega8.cc commented+1 from me. We are doing this in BOA for years, albeit with direct SQL:
drush @hm sqlq "UPDATE hosting_platform SET status=-1 WHERE nid=7"
Comment #8
Neograph734I cannot get this to work on a new install (did not yet test migrate).
I started with a clean vm, and installed all requirements.
Then I ran
drush dl --destination=/var/aegir/.drush provision-7.x-3.x-dev
to obtain the very lastest provision (7.x-3.8+11-dev).I patched the files in /var/aegir/.drush/provision
I cleared drush cache
I ran drush
hostmaster-install
.Installation completes as expected, but the profile is not locked.
(Perhaps this issue should be moved to the provision project as it took me quite some time to figure out where to apply the patch?)