Only change login umask when needed
This commit is contained in:
parent
f7f323b763
commit
c8de324376
|
@ -437,7 +437,9 @@ function remove_management_engine_interface {
|
||||||
}
|
}
|
||||||
|
|
||||||
function set_login_umask {
|
function set_login_umask {
|
||||||
sed -i 's|UMASK\t.*|UMASK\t\t077|g' /etc/login.defs
|
if ! grep -q 'UMASK\t\t077' /etc/login.defs; then
|
||||||
|
sed -i 's|UMASK\t.*|UMASK\t\t077|g' /etc/login.defs
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function disable_deferred_execution {
|
function disable_deferred_execution {
|
||||||
|
|
Loading…
Reference in New Issue