update to 31b795ca71189b326b80666076398f31aea4f2be
[automated-distro-installer] / fai / config / scripts / CENTOS / 10-security
1 #! /bin/bash
2
3 # (c) Michael Goetze, 2010-11, mgoetze@mgoetze.net
4 # Thomas Lange, 2015-2020
5
6 error=0; trap 'error=$(($?>$error?$?:$error))' ERR # save maximum error code
7
8 $ROOTCMD usermod -p $ROOTPW root
9
10 fcopy -v /etc/selinux/config
11 $ROOTCMD fixfiles onboot # this fixes the SELinux security contexts during the first boot
12 chmod a+rx $target
13
14 exit $error