mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
5a792a0d6a
commit
77051cf145
@ -576,7 +576,7 @@ def main():
|
||||
os.chdir(WORKDIR)
|
||||
else:
|
||||
raise
|
||||
if not singleinstance():
|
||||
if os.geteuid() == 0 and not singleinstance():
|
||||
print('Another instance of plugins-mirror is running', file=sys.stderr)
|
||||
raise SystemExit(1)
|
||||
open('log', 'w').close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user