summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2024-03-23 09:05:37 +0100
committerErich Eckner <git@eckner.net>2024-03-23 09:05:37 +0100
commitaff8b34f803054fcad66eff941a67d26d3950b9f (patch)
tree064d18dae3f3454e795bc9008d6bbda000c65ced
parentb1885eee97f8f12062354f3b2142441393be0507 (diff)
downloadcomputer-time-limit-aff8b34f803054fcad66eff941a67d26d3950b9f.tar.xz
computer-time-limit: terminate the correct thing
-rwxr-xr-xcomputer-time-limit2
1 files changed, 1 insertions, 1 deletions
diff --git a/computer-time-limit b/computer-time-limit
index f214f99..8ca0515 100755
--- a/computer-time-limit
+++ b/computer-time-limit
@@ -55,7 +55,7 @@ wie_lange_noch() {
check_time() {
if [ "${noch}" -le 0 ]; then
sende_msg stop "$2" >/dev/null
- loginctl terminate-session "$1"
+ loginctl terminate-user "$1"
fi
if [ "${noch}" -lt 3630 ] && [ "${noch}" -gt 3570 ]; then
espeak-ng -vde -w /tmp/stunde.wav 'noch eine Stunde'