Warn on fallback on misconfigured login shell

This commit is contained in:
Alexander Sosedkin 2020-04-25 14:43:33 +02:00
parent ddfcddfebb
commit df39b79d20

View file

@ -69,6 +69,7 @@ writeText "login-inner" ''
elif [ -x "${config.user.shell}" ]; then
exec "${config.user.shell}"
else
echo "Cannot execute shell '${config.user.shell}', falling back to bash"
exec /usr/bin/env bash
fi
''