Add 9.9 - Add /etc/shells

This commit is contained in:
Aditya 2023-01-14 21:56:44 +05:30
parent d918eba6a9
commit 9999644502
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,11 @@
#!/bin/bash
cat > /etc/shells.sh << "EOF"
# Begin /etc/shells
/bin/sh
/bin/bash
# End /etc/shells
EOF

View file

@ -1535,3 +1535,15 @@ then
stop_script "chapter9/9.8-inputrc.sh"
fi
# Chapter 9.9
# ===========
echo "Creating /etc/shells"
su -c "bash $SCRIPT/chapter9/9.9-shells.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter9/9.9-shells.sh"
fi