xterm add repo

This commit is contained in:
burakerturk
2015-07-16 01:40:09 +03:00
parent 74c1458458
commit ccf20e0ddb
14 changed files with 524 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/python
import os
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
ugstr = "root:utmp"
os.spawnvp(os.P_NOWAIT, "/bin/chown", ["/bin/chown", ugstr, "/usr/sbin/utempter"])
os.spawnvp(os.P_NOWAIT, "/bin/chmod", ["/bin/chmod", "2775", "/usr/sbin/utempter"])
for file in ["/var/log/wtmp", "/run/utmp"]:
if os.path.exists(file):
os.spawnvp(os.P_NOWAIT, "/bin/chown", ["/bin/chown", ugstr, file])
os.spawnvp(os.P_NOWAIT, "/bin/chmod", ["/bin/chmod", "664", file])