-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #3351733: Move Varbase profile from docroot/profiles/varbase to…
… docroot/profiles/contrib/varbase
- Loading branch information
Showing
5 changed files
with
163 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,156 @@ | ||
# Varbase Scripts | ||
|
||
### Add Varbase Testing Users | ||
## Add Varbase Testing Users | ||
|
||
To add testing users for each default user role in Varbase. | ||
|
||
``` | ||
cd PROJECT_DIR_NAME/docroot/profiles/contrib/varbase/scripts | ||
bash add-testing-users.sh | ||
``` | ||
|
||
### Delete Varbase Testing Users | ||
The out put for this bash command: | ||
``` | ||
---------------------------------------------------------------- | ||
User name: Normal user | ||
User mail: [email protected] | ||
User password: dD.123123ddd | ||
User role: _none_ | ||
================================================================= | ||
[success] Created a new user with uid 8 | ||
No user role for this user | ||
---------------------------------------------------------------- | ||
User name: Editor | ||
User mail: [email protected] | ||
User password: dD.123123ddd | ||
User role: editor | ||
================================================================= | ||
[success] Created a new user with uid 9 | ||
[success] Added editor role to Editor | ||
---------------------------------------------------------------- | ||
User name: Content admin | ||
User mail: [email protected] | ||
User password: dD.123123ddd | ||
User role: content_admin | ||
================================================================= | ||
[success] Created a new user with uid 10 | ||
[success] Added content_admin role to Content admin | ||
---------------------------------------------------------------- | ||
User name: SEO admin | ||
User mail: [email protected] | ||
User password: dD.123123ddd | ||
User role: seo_admin | ||
================================================================= | ||
[success] Created a new user with uid 11 | ||
[success] Added seo_admin role to SEO admin | ||
---------------------------------------------------------------- | ||
User name: Site admin | ||
User mail: [email protected] | ||
User password: dD.123123ddd | ||
User role: site_admin | ||
================================================================= | ||
[success] Created a new user with uid 12 | ||
[success] Added site_admin role to Site admin | ||
---------------------------------------------------------------- | ||
User name: Super admin | ||
User mail: [email protected] | ||
User password: dD.123123ddd | ||
User role: administrator | ||
================================================================= | ||
[success] Created a new user with uid 13 | ||
[success] Added administrator role to Super admin | ||
``` | ||
|
||
## Delete Varbase Testing Users | ||
To delete all generated testing users, with all content created by them. | ||
``` | ||
## cd PROJECT_DIR_NAME/docroot/profiles/contrib/varbase/scripts | ||
## bash delete-testing-users.sh | ||
cd PROJECT_DIR_NAME/docroot/profiles/contrib/varbase/scripts | ||
bash delete-testing-users.sh | ||
``` | ||
|
||
The out put for this bash command: | ||
``` | ||
---------------------------------------------------------------- | ||
User name: Normal user | ||
User mail: [email protected] | ||
User password: dD.123123ddd | ||
User role: _none_ | ||
================================================================= | ||
[warning] All content created by Normal user will be deleted. | ||
// Cancel user account?: : yes. | ||
> [notice] Deleted user: Normal user <[email protected]>. | ||
> [notice] Message: Account /Normal user/ has been deleted. | ||
> | ||
---------------------------------------------------------------- | ||
User name: Editor | ||
User mail: [email protected] | ||
User password: dD.123123ddd | ||
User role: editor | ||
================================================================= | ||
[warning] All content created by Editor will be deleted. | ||
// Cancel user account?: : yes. | ||
> [notice] Deleted user: Editor <[email protected]>. | ||
> [notice] Message: Account /Editor/ has been deleted. | ||
> | ||
---------------------------------------------------------------- | ||
User name: Content admin | ||
User mail: [email protected] | ||
User password: dD.123123ddd | ||
User role: content_admin | ||
================================================================= | ||
[warning] All content created by Content admin will be deleted. | ||
// Cancel user account?: : yes. | ||
> [notice] Deleted user: Content admin <[email protected]>. | ||
> [notice] Message: Account /Content admin/ has been deleted. | ||
> | ||
---------------------------------------------------------------- | ||
User name: SEO admin | ||
User mail: [email protected] | ||
User password: dD.123123ddd | ||
User role: seo_admin | ||
================================================================= | ||
[warning] All content created by SEO admin will be deleted. | ||
// Cancel user account?: : yes. | ||
> [notice] Deleted user: SEO admin <[email protected]>. | ||
> [notice] Message: Account /SEO admin/ has been deleted. | ||
> | ||
---------------------------------------------------------------- | ||
User name: Site admin | ||
User mail: [email protected] | ||
User password: dD.123123ddd | ||
User role: site_admin | ||
================================================================= | ||
[warning] All content created by Site admin will be deleted. | ||
// Cancel user account?: : yes. | ||
> [notice] Deleted user: Site admin <[email protected]>. | ||
> [notice] Message: Account /Site admin/ has been deleted. | ||
> | ||
---------------------------------------------------------------- | ||
User name: Super admin | ||
User mail: [email protected] | ||
User password: dD.123123ddd | ||
User role: administrator | ||
================================================================= | ||
[warning] All content created by Super admin will be deleted. | ||
// Cancel user account?: : yes. | ||
> [notice] Deleted user: Super admin <[email protected]>. | ||
> [notice] Message: Account /Super admin/ has been deleted. | ||
``` | ||
## Change the list of users and their passwords | ||
* Edit the `varbase.users.yml` file. | ||
* Add more users or change the password for the listed users | ||
* The `add-testing-users.sh` and `delete-testing-users.sh` bash command will | ||
read all changes and apply them.from the `varbase.users.yml`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters