Skip to content

Commit

Permalink
Update _util.py
Browse files Browse the repository at this point in the history
  • Loading branch information
srinitha709 authored Jan 17, 2025
1 parent 4b9b58f commit 1e9a17e
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions intel_owl/settings/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,6 @@

get_secret = os.environ.get


# Fallback to current user's UID and GID if 'www-data' is not found
try:
uid = pwd.getpwnam("www-data").pw_uid
except KeyError:
uid = os.getuid()
logger.warning("'www-data' user not found. Using current user's UID: %s", uid)

try:
gid = grp.getgrnam("www-data").gr_gid
except KeyError:
gid = os.getgid()
logger.warning("'www-data' group not found. Using current user's GID: %s", gid)

def set_permissions(directory: Path, force_create: bool = False):
if not directory.exists():
# this may happen in case we have added a new directory in the Dockerfile
Expand Down

0 comments on commit 1e9a17e

Please sign in to comment.