-
1. Re: Adding a user with add-user.sh with no console output
lostvicking Mar 17, 2015 7:01 AM (in response to lostvicking)The way I'm solving this in the interim is by way of a bash script that calls add-user.sh, however, this is less than ideal as I would like to have the RPM post-install script take care of that for me. Whereas now someone has to physically run the script after the RPM installs.
-
2. Re: Adding a user with add-user.sh with no console output
dlofthouse Mar 17, 2015 7:46 AM (in response to lostvicking)What do you mean by does not return at all? Are you saying it hangs?
-
3. Re: Adding a user with add-user.sh with no console output
lostvicking Mar 17, 2015 8:18 AM (in response to dlofthouse)Yes, it hangs.
-
4. Re: Adding a user with add-user.sh with no console output
dlofthouse Mar 17, 2015 9:01 AM (in response to lostvicking)The simple workaround could be for you to just manually add the String for the user directly to the properties file, having a previously defined user and password is generally but but it sounds like you are doing that anyway.
Alternatively it would require some further analysis of the hang, this is not something I have seen before. I would suggest providing as much information as you can, you need to check where the hang is happening - if add-user is hanging is it's Java process running, if it is will it be possible to capture a thread dump if you execute 'kill -3 ' for that process. Alternatively how does you post install script determine the status of the command, could that be waiting for some output that will not happen due to it being executed in silent mode?