-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add monitoring user and access token for setup. Co-Authored-by: Peter Weber <[email protected]>
- Loading branch information
Showing
4 changed files
with
139 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,11 +97,11 @@ invenio queues declare | |
|
||
# Create admin role to restrict access | ||
section "Create roles for users" "info" | ||
invenio roles create superuser | ||
invenio roles create admin | ||
invenio roles create moderator | ||
invenio roles create submitter | ||
invenio roles create user | ||
invenio roles create superuser -d SuperUser | ||
invenio roles create admin -d Admin | ||
invenio roles create moderator -d Moderator | ||
invenio roles create submitter -d Submitter | ||
invenio roles create user -d User | ||
|
||
section "Initialize access for roles" "info" | ||
invenio access allow superuser-access role superuser | ||
|
@@ -111,6 +111,21 @@ invenio access allow admin-access role moderator | |
invenio access allow admin-access role submitter | ||
message "Done" "success" | ||
|
||
section "Create user for monitoring" "info" | ||
invenio users create -a [email protected] --password monitor | ||
invenio users confirm [email protected] | ||
invenio roles create monitoring -d Monitoring | ||
invenio roles add [email protected] monitoring | ||
# create token access for monitoring | ||
# if the environement variable INVENIO_RERO_ACCESS_TOKEN_MONITORING is not set | ||
# a new token will be generated | ||
if [ -z ${INVENIO_RERO_ACCESS_TOKEN_MONITORING} ] | ||
then | ||
eval ${PREFIX} invenio utils tokens_create -n monitoring -u [email protected] | ||
else | ||
eval ${PREFIX} invenio utils tokens_create -n monitoring -u [email protected] -t ${INVENIO_RERO_ACCESS_TOKEN_MONITORING} | ||
fi | ||
|
||
# Create a default location for depositing files | ||
section "Create location for storing files" "info" | ||
invenio fixtures deposits create | ||
|
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