Skip to content
Snippets Groups Projects
Commit cec1edfc authored by root's avatar root
Browse files

update bootstrap and bashrc_git

parent 685663ac
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ function setBashrc(){
local LOCALTYPE=$1
echo -e "\e[32mConfiguring bashrc...\e[0m"
yes | cp -f $PWD/src/bashrc_base.sh ~/.env/bashrc_base.sh &>/dev/null
yes | cp -f $PWD/src/bashrc_$LOCALTYPE.sh ~/.env/bashrc_$LOCALTYPE.sh &>/dev/null
sed "s/PROXYIPSWAP/$PROXYIP/g; s/PROXYPORTSWAP/$PROXYPORT/g" $PWD/src/bashrc_$LOCALTYPE.sh > ~/.env/bashrc_$LOCALTYPE.sh
if ! grep "source ~/.env/bashrc_base.sh" ~/.bashrc &>/dev/null; then echo -e "source ~/.env/bashrc_base.sh" >> ~/.bashrc; fi
if ! grep "source ~/.env/bashrc_$LOCALTYPE.sh" ~/.bashrc &>/dev/null; then echo -e "source ~/.env/bashrc_$LOCALTYPE.sh" >> ~/.bashrc; fi
source ~/.bashrc
......
......@@ -22,8 +22,8 @@ function tokensetup(){
function proxyEnvToggle(){
if [[ -z "$http_proxy" ]]; then
echo -e "Proxy starts..."
export http_proxy=http://192.168.32.199:7890
export https_proxy=http://192.168.32.199:7890
export http_proxy=http://PROXYIPSWAP:PROXYPORTSWAP
export https_proxy=http://PROXYIPSWAP:PROXYPORTSWAP
else
echo -e "Proxy ends..."
unset http_proxy
......
......@@ -9,14 +9,14 @@ PreferredAuthentications publickey,keyboard-interactive,password
Host ihep.cc
User root
port 50022
Port 50022
Host ccopt.ihep.ac.cn
User zhangxuantong
port 22
Port 22
Host ccopt
User zhangxuantong
port 22
Port 22
Host herdtest115
User root
......@@ -33,12 +33,8 @@ Host herddocs
Host sdiatce
User xzhang
Hostname 60.216.110.3
port 22222
Port 22222
Host sdiatse
User xzhang
Hostname 60.216.110.4
port 22222
Host grid-data
User root
Hostname 192.168.60.116
Port 22222
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment