From 29a21c6651b914702a4fc3b61e84305e0c338c9b Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Wed, 9 Jan 2019 01:08:42 -0700 Subject: [PATCH] split profile section into individual files --- customize.sh | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/customize.sh b/customize.sh index 6966469..53580c2 100644 --- a/customize.sh +++ b/customize.sh @@ -34,6 +34,7 @@ echo -e "in this archive.${norm}\n" echo -e "${mag}---------------------${norm}" echo "(please note any errors below)" + ## copy clean .bashrc for root user echo -e "copying ${yellow}.bashrc${norm} to ${yellow}/root${norm}" # backup @@ -41,17 +42,27 @@ cp -f /root/.bashrc /root/.bashrc.original # copy new cp -f config/root/.bashrc /root/.bashrc -## Copy profile template files and skel files -echo -e "\ncopying default bash profile files..." +## copy profile template file +echo -e "copying ${yellow}profile${norm} to ${yellow}/etc/profile${norm}" # backup cp -f /etc/profile /etc/profile.original -cp -f /etc/bash.bashrc /etc/bash.bashrc.original -cp -f /etc/skel/.bashrc /etc/skel/.bashrc.original # copy new cp -f config/etc/profile /etc/profile + +## copy updated bash.bashrc +echo -e "copying ${yellow}bash.bashrc${norm} to ${yellow}/etc/bash.bashrc${norm}" +# backup +cp -f /etc/bash.bashrc /etc/bash.bashrc.original +# copy new cp -f config/etc/bash.bashrc /etc/bash.bashrc + +## copy updated skel .bashrc +echo -e "copying ${yellow}.bashrc${norm} to ${yellow}/etc/skel/.bashrc${norm}" +# backup +cp -f /etc/skel/.bashrc /etc/skel/.bashrc.original +# copy new cp -f config/etc/skel/.bashrc /etc/skel/.bashrc -echo "...done" + ## copy nano settings echo -e "\ncopying nano default settings..."