7 lines
173 B
Bash
7 lines
173 B
Bash
#!/usr/bin/bash
|
|
|
|
if [[ "${PAM_USER}" =~ -exam$ ]]; then
|
|
systemctl start firewalld.service
|
|
elif ! (users | grep -q -- "-exam"); then
|
|
systemctl stop firewalld.service
|
|
fi
|