This commit is contained in:
Kovid Goyal 2016-01-07 15:49:25 +05:30
parent 5a792a0d6a
commit 77051cf145

View File

@ -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()