split profile section into individual files

This commit is contained in:
Asif Bacchus 2019-01-09 01:08:42 -07:00
parent 5d18f9cacd
commit 29a21c6651
1 changed files with 16 additions and 5 deletions

View File

@ -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..."