Add 9.7 - Add shell startup file

This commit is contained in:
Aditya 2023-01-14 21:51:13 +05:30
parent 09bd417942
commit 1903f0e5f0
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,9 @@
#!/bin/bash
cat > /etc/profile << "EOF"
# Begin /etc/profile
export LANG=en_IN.UTF-8
# End /etc/profile
EOF

View file

@ -1511,3 +1511,15 @@ then
stop_script "chapter9/9.6-configure-sysvinit.sh"
fi
# Chapter 9.7
# ===========
echo "Configurintg shell startup files"
su -c "bash $SCRIPT/chapter9/9.7-shell-startup.sh"
# Exit on error
check_exit_code
if [ $exit_status -ne 0 ]
then
stop_script "chapter9/9.7-shell-startup.sh"
fi