Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not create GROUP_OU and USER_OU #106

Closed
oehrlis opened this issue Sep 15, 2022 · 1 comment
Closed

Do not create GROUP_OU and USER_OU #106

oehrlis opened this issue Sep 15, 2022 · 1 comment
Labels

Comments

@oehrlis
Copy link
Owner

oehrlis commented Sep 15, 2022

If variables GROUP_OU and USER_OU are not set the corresponding OU's should not be created

@oehrlis oehrlis added the bug label Sep 15, 2022
@oehrlis
Copy link
Owner Author

oehrlis commented Mar 28, 2023

Add simple check if certain variables are defined like

# - check prerequisites --------------------------------------------------------
# check mandatory variables
[ -z ${OUD_INSTANCE_HOME} ] && echo "- skip $(basename $0), variable OUD_INSTANCE_HOME not set" && exit
[ -z ${PWD_FILE} ]          && echo "- skip $(basename $0), variable PWD_FILE not set"          && exit
[ -f ${PWD_FILE} ]          && echo "- skip $(basename $0), missing password file ${PWD_FILE}"  && exit
[ -z ${HOST} ]              && echo "- skip $(basename $0), variable HOST not set"              && exit
[ -z ${PORT} ]              && echo "- skip $(basename $0), variable PORT not set"              && exit
[ -z ${PORT_SSL} ]          && echo "- skip $(basename $0), variable PORT_SSL not set"          && exit
[ -z ${PORT_ADMIN} ]        && echo "- skip $(basename $0), variable PORT_ADMIN not set"        && exit
[ -z ${PORT_REST_ADMIN} ]   && echo "- skip $(basename $0), variable PORT_REST_ADMIN not set"   && exit
[ -z ${PORT_REST_HTTP} ]    && echo "- skip $(basename $0), variable PORT_REST_HTTP not set"    && exit
[ -z ${PORT_REST_HTTPS} ]   && echo "- skip $(basename $0), variable PORT_REST_HTTPS not set"   && exit
[ -z ${DIRMAN} ]            && echo "- skip $(basename $0), variable DIRMAN not set"            && exit
[ -z ${BASEDN} ]            && echo "- skip $(basename $0), variable BASEDN not set"            && exit

@oehrlis oehrlis closed this as completed Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant