Commit 8143dab1 authored by iSergio's avatar iSergio
Browse files

Fix

parent d51e2b65
Loading
Loading
Loading
Loading
+0 −21
Original line number Diff line number Diff line
@@ -139,9 +139,6 @@ for ((i = 0; i < ${#DS_POOL_NAMES[@]}; i++)); do
        /subsystem=security/security-domain=encrypted_pass_$i:add(cache-type=default),
        /subsystem=security/security-domain=encrypted_pass_$i/authentication=classic:add(),
        /subsystem=security/security-domain=encrypted_pass_$i/authentication=classic/login-module=postgres_login_module:add(code=SecureIdentity, flag=required,module-options=[username="${DS_USERS[$i]}", password="$encrypted"]),
        /profile=full-ha/subsystem=security/security-domain=encrypted_pass_$i:add(cache-type=default),
        /profile=full-ha/subsystem=security/security-domain=encrypted_pass_$i/authentication=classic:add(),
        /profile=full-ha/subsystem=security/security-domain=encrypted_pass_$i/authentication=classic/login-module=postgres_login_module:add(code=SecureIdentity, flag=required,module-options=[username="${DS_USERS[$i]}", password="$encrypted"]),
        run-batch"` &>/dev/null
    align_echo $? $result
done
@@ -171,24 +168,6 @@ for ((i = 0; i < ${#DS_POOL_NAMES[@]}; i++)); do
        background-validation-millis=1,
        background-validation=true
        ),
    /profile=full-ha/subsystem=datasources/data-source=\"${DS_POOL_NAMES[$i]}\":add(
        jndi-name=\"${DS_JNDI_NAMES[$i]}\",
        connection-url=\"${DS_CONNECTION_URLS[$i]}\",
        driver-class=org.postgresql.Driver,
        driver-name=postgresql,
        min-pool-size=$min_pool_size,
        max-pool-size=$max_pool_size,
        enabled=true,
        use-java-context=true,
        security-domain=encrypted_pass_$i,
        pool-prefill=false,
        pool-use-strict-min=true,
        allow-multiple-users=true,
        check-valid-connection-sql=\"SELECT 1\",
        validate-on-match=true,
        background-validation-millis=1,
        background-validation=true
        ),
    run-batch"` &>/dev/null
    align_echo $? $result
done