If upon creation of the domain the parameter -adminName is provided with a different name, execution of the script fails.
In configureTlogJDBCStore(), there is a reference to 'AdminServer'. However in createBaseDomain() it could have been renamed, based on the adminName parameter. The adminName variable should be defaulted and passed on where necessary.
Script should be tested for possible other references.