actions.py 676 B

123456789101112131415161718192021
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import shelltools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. def install():
  10. pisitools.dosed("bin/adduser.py", "plugdev", "removable")
  11. shelltools.system("./setup.py install %s" % get.installDIR())
  12. # in new tarball remove
  13. shelltools.chmod(get.installDIR() + "/sbin/mudur_cgroupfs.py" , 0755)
  14. pisitools.dodir("/etc/mudur/services/enabled")
  15. pisitools.dodir("/etc/mudur/services/disabled")
  16. pisitools.dodir("/etc/mudur/services/conditional")