2016-12-21 05:08:45 +04:00
|
|
|
#!/bin/bash
|
|
|
|
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
|
|
|
source "$(dirname "$0")/../../lib/ulib/ulib" || exit 1
|
|
|
|
urequire DEFAULTS
|
|
|
|
|
2016-12-21 05:23:20 +04:00
|
|
|
[ -d /etc/systemd ] || exit 0
|
2016-12-21 05:08:45 +04:00
|
|
|
run_as_root "$@"
|
2016-12-21 05:23:20 +04:00
|
|
|
|
2016-12-21 05:08:45 +04:00
|
|
|
cp "$scriptdir/kill-ssh-user-sessions.service" /etc/systemd/system
|
|
|
|
systemctl enable kill-ssh-user-sessions.service
|