fixed wrong path for source files
This commit is contained in:
parent
6177ff29de
commit
e6760876a0
24
customize.sh
24
customize.sh
@ -12,13 +12,9 @@ exit 1
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
### Let user know what's happening
|
### Let user know what's happening
|
||||||
echo -e "\nThis script will copy TEMPLATE files to various locations in order \
|
echo -e "\nThis script will copy TEMPLATE files to various locations in order to customize your system. Backups will be created in-place with the extension '.original'"
|
||||||
to customize your system. Backups will be created in-place with the \
|
echo -e "\n\e[0;33mPlease note: It's still up to you to customize the template files with settings appropriate to your environment!"
|
||||||
extension '.original'"
|
echo -e "\n\e[0;36mDetails about template files are in the readme.md files within each directory in this archive.\e[0m\n"
|
||||||
echo -e "\n\e[0;33mPlease note: It's still up to you to customize the template \
|
|
||||||
files with settings appropriate to your environment!"
|
|
||||||
echo -e"\n\e[0;36mDetails about template files are in the readme.md files \
|
|
||||||
within each directory in this archive.\e[0m\n"
|
|
||||||
|
|
||||||
### Copy files to proper locations
|
### Copy files to proper locations
|
||||||
|
|
||||||
@ -27,7 +23,7 @@ echo -e "\ncopying .bashrc to /root..."
|
|||||||
# backup
|
# backup
|
||||||
cp -f /root/.bashrc /root/.bashrc.original
|
cp -f /root/.bashrc /root/.bashrc.original
|
||||||
# copy new
|
# copy new
|
||||||
cp -f root/.bashrc /root/.bashrc
|
cp -f config/root/.bashrc /root/.bashrc
|
||||||
echo "...done"
|
echo "...done"
|
||||||
|
|
||||||
## Copy profile template files and skel files
|
## Copy profile template files and skel files
|
||||||
@ -37,9 +33,9 @@ cp -f /etc/profile /etc/profile.original
|
|||||||
cp -f /etc/bash.bashrc /etc/bash.bashrc.original
|
cp -f /etc/bash.bashrc /etc/bash.bashrc.original
|
||||||
cp -f /etc/skel/.bashrc /etc/skel/.bashrc.original
|
cp -f /etc/skel/.bashrc /etc/skel/.bashrc.original
|
||||||
# copy new
|
# copy new
|
||||||
cp -f etc/profile /etc/profile
|
cp -f config/etc/profile /etc/profile
|
||||||
cp -f etc/bash.bashrc /etc/bash.bashrc
|
cp -f config/etc/bash.bashrc /etc/bash.bashrc
|
||||||
cp -f etc/skel/.bashrc /etc/skel/.bashrc
|
cp -f config/etc/skel/.bashrc /etc/skel/.bashrc
|
||||||
echo "...done"
|
echo "...done"
|
||||||
|
|
||||||
## copy nano settings
|
## copy nano settings
|
||||||
@ -47,7 +43,7 @@ echo -e "\ncopying nano default settings..."
|
|||||||
# backup
|
# backup
|
||||||
cp -f /etc/nanorc /etc/nanorc.original
|
cp -f /etc/nanorc /etc/nanorc.original
|
||||||
# copy new
|
# copy new
|
||||||
cp -f etc/nanorc /etc/nanorc
|
cp -f config/etc/nanorc /etc/nanorc
|
||||||
echo "...done"
|
echo "...done"
|
||||||
|
|
||||||
## copy timesync
|
## copy timesync
|
||||||
@ -55,7 +51,7 @@ echo -e "\ncopying timesync configuration..."
|
|||||||
# backup
|
# backup
|
||||||
cp -f /etc/systemd/timesyncd.conf /etc/systemd/timesyncd.conf.original
|
cp -f /etc/systemd/timesyncd.conf /etc/systemd/timesyncd.conf.original
|
||||||
# copy new
|
# copy new
|
||||||
cp -f etc/systemd/timesyncd.conf /etc/systemd/timesyncd.conf
|
cp -f config/etc/systemd/timesyncd.conf /etc/systemd/timesyncd.conf
|
||||||
echo "...done"
|
echo "...done"
|
||||||
|
|
||||||
## copy sshd configuration
|
## copy sshd configuration
|
||||||
@ -63,7 +59,7 @@ echo -e "\ncopying sshd configuration..."
|
|||||||
# backup
|
# backup
|
||||||
cp -f /etc/ssh/sshd_config /etc/ssh/sshd_config.original
|
cp -f /etc/ssh/sshd_config /etc/ssh/sshd_config.original
|
||||||
# copy new
|
# copy new
|
||||||
cp -f etc/ssh/sshd_config /etc/ssh/sshd_config
|
cp -f config/etc/ssh/sshd_config /etc/ssh/sshd_config
|
||||||
echo "...done"
|
echo "...done"
|
||||||
|
|
||||||
### Exit gracefully
|
### Exit gracefully
|
||||||
|
Loading…
Reference in New Issue
Block a user