use pubkey auth for containers
This commit is contained in:
parent
4ba2d0ce38
commit
3db1764a7f
3 changed files with 6 additions and 18 deletions
|
|
@ -14,22 +14,14 @@ function user_config {
|
|||
if [[ "$USER" == "user" ]]; then
|
||||
get_path
|
||||
mkdir $HOME/.vim
|
||||
if [[ -a $HOME/.bashrc ]]; then
|
||||
mv $HOME/.bashrc $HOME/.bashrc.old
|
||||
echo "Old .bashrc moved to .bashrc.old"
|
||||
fi
|
||||
ln -s $SCRIPTPATH/{.bashrc,vim/.vimrc,tmux/.tmux.conf,.profile} $HOME/;
|
||||
ln -s $SCRIPTPATH/vim/colors $HOME/.vim/
|
||||
ln -sf $SCRIPTPATH/{.bashrc,vim/.vimrc,tmux/.tmux.conf,.profile} $HOME/;
|
||||
ln -sf $SCRIPTPATH/vim/colors $HOME/.vim/
|
||||
echo 'Linking configuration files done'
|
||||
elif [[ "$USER" == "root" ]]; then
|
||||
get_path
|
||||
mkdir /root/.vim
|
||||
if [[ -a $HOME/.bashrc ]]; then
|
||||
mv /root/.bashrc /root/.bashrc.old
|
||||
echo "Old .bashrc moved to .bashrc.old"
|
||||
fi
|
||||
ln -s $SCRIPTPATH/{.bashrc,vim/.vimrc,tmux/.tmux.conf,.profile} /root/
|
||||
ln -s $SCRIPTPATH/vim/colors /root/.vim/
|
||||
ln -sf $SCRIPTPATH/{.bashrc,vim/.vimrc,tmux/.tmux.conf,.profile} /root/
|
||||
ln -sf $SCRIPTPATH/vim/colors /root/.vim/
|
||||
echo 'Linking configuration files done'
|
||||
else
|
||||
echo 'No selection was made'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue