Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Do not error on post install script if usermod fails #75

Merged
merged 1 commit into from

3 participants

@jaredmorrow

The usermod command to change the home directory will fail if the
the user is logged in. We should not fail on this command
as the user will be logged in during upgrades and multiple
application installs.

Fixes: basho/node_package#64

@jaredmorrow jaredmorrow Do not error on post install script if usermod fails
The usermod command to change the home directory will fail if the
the user is logged in.  We should not fail on this command
as the user will be logged in during upgrades and multiple
application installs.

Fixes: basho/node_package#64
2757e81
@hectcastro
Collaborator

+1

@jaredmorrow jaredmorrow merged commit cb6a91c into from
@jaredmorrow jaredmorrow deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 29, 2013
  1. @jaredmorrow

    Do not error on post install script if usermod fails

    jaredmorrow authored
    The usermod command to change the home directory will fail if the
    the user is logged in.  We should not fail on this command
    as the user will be logged in during upgrades and multiple
    application installs.
    
    Fixes: basho/node_package#64
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  priv/templates/rpm/specfile
View
2  priv/templates/rpm/specfile
@@ -105,7 +105,7 @@ if ! getent group {{package_install_group}} >/dev/null 2>&1; then
fi
if getent passwd {{package_install_user}} >/dev/null 2>&1; then
- usermod -d %{_localstatedir}/lib/{{package_install_name}} {{package_install_user}}
+ usermod -d %{_localstatedir}/lib/{{package_install_name}} {{package_install_user}} || true
else
useradd -r -g {{package_install_group}} \
--home %{_localstatedir}/lib/{{package_install_name}} \
Something went wrong with that request. Please try again.