cka-SVV/lab21.sh
Alexander van Vugt 47a50a0f7c initial upload
2019-12-04 12:10:43 +01:00

10 lines
369 B
Bash
Executable File

#!/bin/bash
# RHCSA Labs lesson 21 script
# SvV
# version 0.1
grep -i enforcing /etc/sysconfig/selinux >/dev/null 2>&1 || echo no enforcing set in /etc/sysconfig/selinux
getenforce | grep -i enforcing >/dev/null 2>&1 || echo currently not in enforcing mode
history | tail -20 | grep restorecon >/dev/null 2>&1 || echo you have not run the restorecon command recently