Sophie

Sophie

distrib > Mageia > 8 > x86_64 > by-pkgid > 53460ea41f84b25abd8fe21eab7f1f2c > scriptlet

chkconfig-1.14-1.mga8.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