diff --git a/src/freedombone-utils-setup b/src/freedombone-utils-setup index 738bb30a..ce822476 100755 --- a/src/freedombone-utils-setup +++ b/src/freedombone-utils-setup @@ -466,6 +466,13 @@ function disable_core_dumps { fi } +function dummy_nologin_command { + if [ ! -f /sbin/nologin ]; then + echo '#!/bin/bash' > /sbin/nologin + chmod +x /sbin/nologin + fi +} + function setup_firewall { function_check create_completion_file create_completion_file @@ -490,6 +497,9 @@ function setup_utils { read_config_param "PROJECT_REPO" write_config_param "PROJECT_REPO" "$PROJECT_REPO" + function_check dummy_nologin_command + dummy_nologin_command + function_check disable_core_dumps disable_core_dumps