diff --git a/meson_post_install.py b/meson_post_install.py index 0e34cad..a2f7824 100644 --- a/meson_post_install.py +++ b/meson_post_install.py @@ -20,8 +20,9 @@ import subprocess import sys destdir = os.environ.get('DESTDIR', '') +euid = os.geteuid() -if not destdir and not os.path.exists('/run/.containerenv'): +if not destdir and not os.path.exists('/run/.containerenv') and euid == 0: subprocess.run(['systemd-tmpfiles', '--create'], check=True) sys.exit(0)