Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 14e97af55a5528384dee2a01877d47b7 > scriptlet

chkconfig-1.11-2.mga7.x86_64.rpm

PRETRANS

<lua>
path = "/var/lib/alternatives"
path2 = "/var/lib/rpm/alternatives"
st = posix.stat(path)
st2 = posix.stat(path2)
if st and st.type == "link" and st2 and st2.type == "directory" then
  os.remove(path)
  os.rename(path2, path)
  posix.symlink(path, path2)
end