ajouter une option pour installer le service kill-ssh-user-sessions

This commit is contained in:
Jephté Clain 2016-12-21 05:23:20 +04:00
parent c95d1cd39a
commit 4b7d4f4c04
3 changed files with 10 additions and 2 deletions

2
.udir
View File

@ -16,6 +16,8 @@ rm_utools=
kvm_service=
# Faut-il installer le service openvz-fix-etchosts?
openvz_service=
# Faut-il installer le service kill-ssh-user-sessions?
ksus_service=
configure_variables=(dest uninst_utools rm_utools kvm_service openvz_service)
configure_dest_for=(bashrc profile lib/uinst/conf lib/uinst/rootconf lib/profile.d/nutools.shared lib/bashrc.d/bash_completion.shared lib/init.d/kvm-stop-all legacy/sysinc/utools legacy/sysinc/system_caps legacy/sysinc/private/init)

View File

@ -3,6 +3,8 @@
source "$(dirname "$0")/../../lib/ulib/ulib" || exit 1
urequire DEFAULTS
[ -d /etc/systemd ] || exit 0
run_as_root "$@"
cp "$scriptdir/kill-ssh-user-sessions.service" /etc/systemd/system
systemctl enable kill-ssh-user-sessions.service

View File

@ -66,13 +66,17 @@ if [ -n "$rm_utools" ]; then
fi
[ -n "$kvm_service" ] &&
etitle "Installation de /etc/init.d/kvm-stop-all" \
etitle "Installation du service kvm-stop-all" \
"$scriptdir/../init.d/install-kvm-stop-all"
[ -n "$openvz_service" ] &&
etitle "Installation de /etc/init.d/openvz-fix-etchosts" \
etitle "Installation du service openvz-fix-etchosts" \
"$scriptdir/../init.d/install-openvz-fix-etchosts"
[ -n "$ksus_service" ] &&
etitle "Installation du service kill-ssh-user-sessions" \
"$scriptdir/../init.d/install-kill-ssh-user-sessions"
etitle "Installation des répertoires pour uscrontab"
if [ -d /var/uscrontab -a ! -d /var/local/uscrontab ]; then
eimportant "Migration du répertoire /var/uscrontab vers /var/local/uscrontab"