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)
|
os.chdir(WORKDIR)
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
if not singleinstance():
|
if os.geteuid() == 0 and not singleinstance():
|
||||||
print('Another instance of plugins-mirror is running', file=sys.stderr)
|
print('Another instance of plugins-mirror is running', file=sys.stderr)
|
||||||
raise SystemExit(1)
|
raise SystemExit(1)
|
||||||
open('log', 'w').close()
|
open('log', 'w').close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user