mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-25 22:46:01 +01:00
Remove root owned config dir in addition to root owned sub dirs.
This commit is contained in:
parent
51d65037df
commit
df2f0fa4c3
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Reference in a new issue