3 Replies Latest reply on Jul 19, 2012 11:34 AM by dlofthouse

    add-user.sh with different jboss.domain.base.dir

    herb

      AS 7.1.1.Final

       

      I'm starting my as7 with "-Djboss.domain.base.dir=/xyz" so it points outside jboss-as-7.1.1.Final directory, so jboss-as-7.1.1.Final directory is never modified.

      But how can I tell add-user.sh to use my own "jboss.domain.base.dir"?

      add-user.sh always writes to ${JBOSS_HOME}/domain/configuration/mgmt-users.properties and ${JBOSS_HOME}/standalone/configuration/mgmt-users.properties and not to /xyz/domain/configuration/mgmt-users.properties

      I tried "${JBOSS_HOME}/bin/add-user.sh -Djboss.domain.base.dir=/xyz" and I also tried setting 'JAVA_OPTS=" -Djboss.domain.base.dir=/xyz' before calling add-user.sh.

       

      Does anybody have a solution to this?