diff --git a/src/freedombone-utils-setup b/src/freedombone-utils-setup index c8bed2c4..9d204f4a 100755 --- a/src/freedombone-utils-setup +++ b/src/freedombone-utils-setup @@ -437,7 +437,9 @@ function remove_management_engine_interface { } 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 {