Sophie

Sophie

distrib > Mageia > 8 > i586 > media > core-release > by-pkgid > 59580cef299c246cb53965962864bcaa > scriptlet

setup-2.7.25-1.mga8.noarch.rpm

POSTTRANS

/bin/sh
if [ -x /usr/sbin/nscd ]; then
	nscd -i passwd -i group || :
fi

Triggers

setup < 2.7.20-9.2

/bin/sh
perl -pi -e 'undef $_ if /\s*(nospoof|spoofalert)\s+on\s+.*/' /etc/host.conf

# (mga5) fix permissions:

setup < 2.7.24-3

posix.chown("/etc/shadow", "root", "shadow")
posix.chmod("/etc/shadow", "0440")
posix.chown("/etc/gshadow", "root", "shadow")
posix.chmod("/etc/gshadow", "0440")
if posix.access("/etc/shadow-", "r") then
  posix.chown("/etc/shadow-", "root", "shadow")
  posix.chmod("/etc/shadow-", "0440")
end
if posix.access("/etc/gshadow-", "r") then
  posix.chown("/etc/gshadow-", "root", "shadow")
  posix.chmod("/etc/gshadow-", "0440")
end

cfgfiles = {'fstab', 'group', 'gshadow', 'hosts', 'passwd', 'resolv.conf', 'shadow'}
for i, file in ipairs(cfgfiles) do
  if posix.stat("/etc/" .. file .. ".rpmnew") then
    os.remove("/etc/" .. file .. ".rpmnew")
  end
end