mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Remove root owned config dir in addition to root owned sub dirs.
This commit is contained in:
parent
51d65037df
commit
df2f0fa4c3
@ -335,6 +335,8 @@ def post_install():
|
||||
for f in os.listdir('.'):
|
||||
if os.stat(f).st_uid == 0:
|
||||
os.rmdir(f)
|
||||
if os.stat(config_dir).st_uid == 0:
|
||||
os.rmdir(config_dir)
|
||||
|
||||
def binary_install():
|
||||
manifest = os.path.join(getattr(sys, 'frozen_path'), 'manifest')
|
||||
|
Loading…
x
Reference in New Issue
Block a user