split profile section into individual files
This commit is contained in:
parent
5d18f9cacd
commit
29a21c6651
21
customize.sh
21
customize.sh
@ -34,6 +34,7 @@ echo -e "in this archive.${norm}\n"
|
|||||||
echo -e "${mag}---------------------${norm}"
|
echo -e "${mag}---------------------${norm}"
|
||||||
echo "(please note any errors below)"
|
echo "(please note any errors below)"
|
||||||
|
|
||||||
|
|
||||||
## copy clean .bashrc for root user
|
## copy clean .bashrc for root user
|
||||||
echo -e "copying ${yellow}.bashrc${norm} to ${yellow}/root${norm}"
|
echo -e "copying ${yellow}.bashrc${norm} to ${yellow}/root${norm}"
|
||||||
# backup
|
# backup
|
||||||
@ -41,17 +42,27 @@ cp -f /root/.bashrc /root/.bashrc.original
|
|||||||
# copy new
|
# copy new
|
||||||
cp -f config/root/.bashrc /root/.bashrc
|
cp -f config/root/.bashrc /root/.bashrc
|
||||||
|
|
||||||
## Copy profile template files and skel files
|
## copy profile template file
|
||||||
echo -e "\ncopying default bash profile files..."
|
echo -e "copying ${yellow}profile${norm} to ${yellow}/etc/profile${norm}"
|
||||||
# backup
|
# backup
|
||||||
cp -f /etc/profile /etc/profile.original
|
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
|
# copy new
|
||||||
cp -f config/etc/profile /etc/profile
|
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
|
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
|
cp -f config/etc/skel/.bashrc /etc/skel/.bashrc
|
||||||
echo "...done"
|
|
||||||
|
|
||||||
## copy nano settings
|
## copy nano settings
|
||||||
echo -e "\ncopying nano default settings..."
|
echo -e "\ncopying nano default settings..."
|
||||||
|
Loading…
Reference in New Issue
Block a user