[jboss-jira] [JBoss JIRA] (AS7-3586) Add a --silent mode to add-user.[.sh, .bat] script

Dustin Kut Moy Cheung (JIRA) jira-events at lists.jboss.org
Thu Feb 2 11:06:50 EST 2012


     [ https://issues.jboss.org/browse/AS7-3586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dustin Kut Moy Cheung updated AS7-3586:
---------------------------------------

    Attachment: AS7-3586.patch


This patch attemps to add that feature request.
                
> Add a --silent mode to add-user.[.sh, .bat] script
> --------------------------------------------------
>
>                 Key: AS7-3586
>                 URL: https://issues.jboss.org/browse/AS7-3586
>             Project: Application Server 7
>          Issue Type: Feature Request
>            Reporter: Dustin Kut Moy Cheung
>            Assignee: Dustin Kut Moy Cheung
>         Attachments: AS7-3586.patch
>
>
> Add a --silent mode to add-user script. This mode is only valid in non-interactive mode, i.e if at least a username and password are provided as arguments to that script. SO running:
> ./add-user.sh --silent=true
> will still allow the script to print. [silent mode is disabled in that case]
> However running:
> ./add-user.sh --silent=true <username> <password> [ManagementRealm]
> will make the script silent. 
> NOTE that it won't even print error messages if --silent=true is put.
> The -- option can be placed anywhere.
> So this will also work:
> ./adduser.sh <username> --silent=true <password>
> or
> ./adduser.sh <username> <password> <ManagementRealm> --silent=true
> The silent option can be useful in scripts that call the add-user script. The silent mode disables the check for a console object since we don't need to print anything to the console. 
> We need the silent option since the way IzPack [GUI Installer] calls scripts, the Console object is not available and the add-user script will fail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list