Add missing file for commit e3396ef
This commit is contained in:
parent
76c2c38800
commit
8b57bef7f8
1 changed files with 7 additions and 0 deletions
7
roles/lmn_fvs/files/pam-exec.sh
Normal file
7
roles/lmn_fvs/files/pam-exec.sh
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
if [[ "${PAM_USER}" =~ -exam$ ]]; then
|
||||||
|
systemctl start firewalld.service
|
||||||
|
elif ! (users | grep -q -- "-exam"); then
|
||||||
|
systemctl stop firewalld.service
|
||||||
|
fi
|
Loading…
Add table
Reference in a new issue