Closed davigotxi closed 9 years ago
This is what is coming on the preinstall scripts from the official rpms
#rpm --scripts -qp riak-1.4.9-1.el6.x86_64.rpm
preinstall scriptlet (using /bin/sh):
if ! getent group riak >/dev/null 2>&1; then
groupadd -r riak
fi
if getent passwd riak >/dev/null 2>&1; then
usermod -d /var/lib/riak riak || true
else
useradd -r -g riak \
--home /var/lib/riak \
--comment "Riak user" \
riak
fi
postinstall scriptlet (using /bin/sh):
# Fixup perms for SELinux (if it is enabled)
selinuxenabled && find /var/lib/riak -name "*.so" -exec chcon -t textrel_shlib_t {} \;
# Make sure shell library file is readable
chmod 0755 /usr/lib64/riak/lib/env.sh
# Man pages are optional and might be missing, read from file
When using something different from the default for the home directory in the puppet module, the home directory gets changed back to the default.
@davigotxi thx!