summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/httpserver
diff options
context:
space:
mode:
authorAdam Dinwoodie <adam@dinwoodie.org>2024-12-08 13:04:52 +0000
committerAdam Dinwoodie <adam@dinwoodie.org>2025-11-08 18:16:04 +0000
commit3734842aa1c0a3bd85e5a448d0b7b2bf6a24316a (patch)
treea3cf1f96a1243069659f24c5c5a14a7e7b18a0f4 /pkgs/development/python-modules/httpserver
parentae814fd3904b621d8ab97418f1d0f2eb0d3716f4 (diff)
linger-users: fix shellcheck warnings
Running with systemd.enableStrictShellChecks with lingering users causes failures due to parsing the output from `ls`. Rewrite the script to avoid parsing ls, and instead rely on loginctl enable-linger and disable-linger commands being idempotent and run them unconditionally. This also fixes a bug where the systemd unit for adding and removing lingering user configuration is only enabled if there are users configured with lingering in the NixOS configuration. This means that if a NixOS system is built with some lingering users, then the linger configuration is removed from all those users, the script to disable lingering won't be run, and those users will incorrectly continue to have lingering enabled. Fixes #418101.
Diffstat (limited to 'pkgs/development/python-modules/httpserver')
0 files changed, 0 insertions, 0 deletions