Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-updates_testing > by-pkgid > 8e8fc374c7576eea5e756b951b08f853 > scriptlet

vnstat-2.2-1.1.mga7.i586.rpm

PRETRANS

<lua>
-- # Kill this directory if a symlink for it exists already
basepath = "/usr/share/doc/vnstat/examples/init.d"
ubupath = basepath .. "/ubuntu"
centpath = basepath .. "/centos"
st = posix.stat(ubupath)
if st and st.type == "link" then
  os.remove(ubupath)
  os.remove(centpath)
end