shell-base/setup/fetch.sh

17 lines
741 B
Bash
Executable File

#!/bin/bash
mkdir -p $BASH_SHELL_BASE/setup/etc/profile.d
mkdir -p $BASH_SHELL_BASE/setup/user
mkdir -p $BASH_SHELL_BASE/setup/root
cp /etc/profile $BASH_SHELL_BASE/setup/etc
cp /etc/bash.bashrc $BASH_SHELL_BASE/setup/etc
cp /etc/profile.d/02-root.sh $BASH_SHELL_BASE/setup/etc/profile.d
cp /etc/profile.d/03-startup.sh $BASH_SHELL_BASE/setup/etc/profile.d
cp $HOME/.bash_profile $BASH_SHELL_BASE/setup/user
cp $HOME/.profile $BASH_SHELL_BASE/setup/user
cp $HOME/.bashrc $BASH_SHELL_BASE/setup/user
cp $HOME/.bash_logout $BASH_SHELL_BASE/setup/user
cp /root/.bash_profile $BASH_SHELL_BASE/setup/root
cp /root/.profile $BASH_SHELL_BASE/setup/root
cp /root/.bashrc $BASH_SHELL_BASE/setup/root
cp /root/.bash_logout $BASH_SHELL_BASE/setup/root