Files
main/hardware/virtualization/virtualbox/comar/package.py
T
2016-07-14 12:34:29 +03:00

15 lines
379 B
Python
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#/usr/bin/python
# -*- coding: utf-8 -*-
import os
files = ("VBoxHeadless", "VBoxNetAdpCtl", "VBoxNetDHCP", "VBoxSDL", "VirtualBox")
vboxgroup = "vboxusers"
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
for _file in files:
f = "/usr/lib/virtualbox/%s" % _file
os.system("/bin/chown :%s %s" % (vboxgroup, f))
os.chmod(f, 04755)