Skip to content

Commit

Permalink
common: fix misleading warning for non-copr users
Browse files Browse the repository at this point in the history
E.g. resalloc agent spawner now uses this library, and corresponding
deployments there's no 'copr' user.
  • Loading branch information
praiskup committed Feb 22, 2024
1 parent 874cb1b commit c201ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/copr_common/background_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def __init__(self):
self.log.addHandler(logging.StreamHandler())

if os.getuid() == 0:
self.log.error("this needs to be run as 'copr' user")
self.log.error("running as UID=0 (root), probably not expected")
sys.exit(1)

self.opts = None
Expand Down

0 comments on commit c201ed0

Please sign in to comment.