Fixed flatpak

This commit is contained in:
Berk Çakar
2021-04-29 02:07:51 +03:00
parent 8f8edfb272
commit 162252cdbd
3 changed files with 34 additions and 4 deletions
@@ -0,0 +1,17 @@
#!/usr/bin/python
import os, re
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
try:
os.system("getent group flatpak || /usr/sbin/groupadd -g 93 flatpak")
os.system("getent passwd flatpak || /usr/sbin/useradd -g flatpak -u 93 -d /var/empty -s /bin/false -c 'flatpak User' flatpak")
os.system("/usr/bin/passwd -l flatpak")
except:
pass
def preRemove():
try:
os.system ("groupdel flatpak")
except:
pass