diff --git a/scripts/chapter9/9.7-shell-startup.sh b/scripts/chapter9/9.7-shell-startup.sh new file mode 100644 index 0000000..d99fd4d --- /dev/null +++ b/scripts/chapter9/9.7-shell-startup.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +cat > /etc/profile << "EOF" +# Begin /etc/profile + +export LANG=en_IN.UTF-8 + +# End /etc/profile +EOF diff --git a/scripts/main.sh b/scripts/main.sh index 6bb5ad1..526e964 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -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 +