actions.py 574 B

1234567891011121314151617
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import get
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import shelltools
  8. def setup():
  9. shelltools.system("sed -i '1i\#!/usr/bin/env python' allthevhosts.py")
  10. def install():
  11. pisitools.insinto("/usr/bin/", "allthevhosts.py")
  12. shelltools.chmod(get.installDIR() + "/usr/bin/allthevhosts.py", mode=0755)
  13. pisitools.dosym("/usr/bin/allthevhosts.py", "/usr/bin/allthevhosts")