Files
main/network/analyzer/avahi/comar/avahi-daemon-package.py
T
Ertuğrul Erata 1a71026d39 works for qt5-base
2015-07-05 13:08:35 +03:00

20 lines
556 B
Python

#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import shutil
ownerships = {
"/run/avahi-daemon" : "avahi:avahi",
}
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
for directory,owners in ownerships.items():
if os.path.exists(directory):
os.system("/bin/chown %s %s" % (owners, directory))
if os.path.exists("/etc/localtime"):
if not os.path.isdir("/etc/avahi/etc"):
os.makedirs("/etc/avahi/etc")
shutil.copy("/etc/localtime", "/etc/avahi/etc/localtime")