Skip to content

Commit

Permalink
fix: user management on classic snap
Browse files Browse the repository at this point in the history
  • Loading branch information
st3v3nmw committed Feb 23, 2024
1 parent 3af82ee commit 948db70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion landscape/client/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

IS_SNAP = os.getenv("LANDSCAPE_CLIENT_SNAP")
IS_CORE = os.getenv("LANDSCAPE_CLIENT_CORE")
IS_CORE = os.getenv("SNAP_SAVE_DATA") is not None

USER = "root" if IS_SNAP else "landscape"
GROUP = "root" if IS_SNAP else "landscape"
Expand Down
2 changes: 0 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,12 @@ apps:
- system-observe
environment:
LANDSCAPE_CLIENT_SNAP: 1
LANDSCAPE_CLIENT_CORE: 1
PYTHONPATH: $SNAP/usr/lib/python3/dist-packages:$PYTHONPATH
config:
command: usr/bin/landscape-config
plugs: [network]
environment:
LANDSCAPE_CLIENT_SNAP: 1
LANDSCAPE_CLIENT_CORE: 1
PYTHONPATH: $SNAP/usr/lib/python3/dist-packages:$PYTHONPATH

layout:
Expand Down

0 comments on commit 948db70

Please sign in to comment.