Correct paths
This commit is contained in:
parent
9d5ce283f6
commit
33c7c585d0
2 changed files with 73 additions and 70 deletions
|
@ -3,62 +3,65 @@
|
||||||
## This script clones all the different repos
|
## This script clones all the different repos
|
||||||
|
|
||||||
|
|
||||||
RED=$(tput setaf 1)
|
|
||||||
GREEN=$(tput setaf 2)
|
|
||||||
ORANGE=$(tput setaf 3)
|
|
||||||
NC=$(tput sgr0)
|
|
||||||
|
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# REPOS ON LIME2 #
|
# REPOS ON LIME2 #
|
||||||
##################
|
##################
|
||||||
|
|
||||||
echo "Setting up Keepass..."
|
echo "Setting up Keepass..."
|
||||||
if [ -e ~/Keepass ]; then
|
if [ -e ~/Keepass ]; then
|
||||||
echo "Keepass is already there, updating..."
|
echo "${GREEN}Keepass is already there, updating...${NC}"
|
||||||
cd ~/Keepass && git pull
|
cd ~/Keepass && git pull
|
||||||
else
|
else
|
||||||
echo "Cloning new Keepass..."
|
echo "${ORANGE}Cloning new Keepass...${NC}"
|
||||||
cd && git clone ssh://flyingscorpio@2px.info.tm/~/repos/Keepass.git
|
cd && git clone ssh://flyingscorpio@2px.info.tm/~/repos/Keepass.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Setting up VimConf..."
|
|
||||||
if [ -e ~/VimConf ]; then
|
|
||||||
echo "VimConf is already there, updating..."
|
|
||||||
cd ~/VimConf && git pull
|
|
||||||
else
|
|
||||||
echo "Cloning new VimConf..."
|
|
||||||
cd && git clone ssh://flyingscorpio@2px.info.tm/~/repos/VimConf.git
|
|
||||||
fi
|
|
||||||
cd ~/VimConf && /bin/bash ~/VimConf/update.sh "$OS"
|
|
||||||
|
|
||||||
echo "Setting up Lessons..."
|
echo "Setting up Lessons..."
|
||||||
if [ -e ~/Lessons ]; then
|
if [ -e ~/Lessons ]; then
|
||||||
echo "Lessons is already there, updating..."
|
echo "${GREEN}Lessons is already there, updating...${NC}"
|
||||||
cd ~/Lessons && git pull
|
cd ~/Lessons && git pull
|
||||||
else
|
else
|
||||||
echo "Cloning new Lessons..."
|
echo "${ORANGE}Cloning new Lessons...${NC}"
|
||||||
cd && git clone ssh://flyingscorpio@2px.info.tm/~/repos/Lessons.git
|
cd && git clone ssh://flyingscorpio@2px.info.tm/~/repos/Lessons.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Setting up RootMe..."
|
|
||||||
if [ -e ~/RootMe ]; then
|
|
||||||
echo "RootMe is already there, updating..."
|
|
||||||
cd ~/RootMe && git pull
|
|
||||||
else
|
|
||||||
echo "Cloning new RootMe..."
|
|
||||||
cd && git clone ssh://flyingscorpio@2px.info.tm/~/repos/RootMe.git
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Setting up PersonnalScripts..."
|
echo "Setting up PersonnalScripts..."
|
||||||
if [ -e ~/PersonnalScripts ]; then
|
if [ -e ~/PersonnalScripts ]; then
|
||||||
echo "PersonnalScripts is already there, updating..."
|
echo "${GREEN}PersonnalScripts is already there, updating...${NC}"
|
||||||
cd ~/PersonnalScripts && git pull
|
cd ~/PersonnalScripts && git pull
|
||||||
else
|
else
|
||||||
echo "Cloning new PersonnalScripts..."
|
echo "${ORANGE}Cloning new PersonnalScripts...${NC}"
|
||||||
cd && git clone ssh://flyingscorpio@2px.info.tm/~/repos/PersonnalScripts.git
|
cd && git clone ssh://flyingscorpio@2px.info.tm/~/repos/PersonnalScripts.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Setting up RootMe..."
|
||||||
|
if [ -e ~/RootMe ]; then
|
||||||
|
echo "${GREEN}RootMe is already there, updating...${NC}"
|
||||||
|
cd ~/RootMe && git pull
|
||||||
|
else
|
||||||
|
echo "${ORANGE}Cloning new RootMe...${NC}"
|
||||||
|
cd && git clone ssh://flyingscorpio@2px.info.tm/~/repos/RootMe.git
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Setting up SetupCockpit..."
|
||||||
|
if [ -e ~/SetupCockpit ]; then
|
||||||
|
echo "${GREEN}SetupCockpit is already there, updating...${NC}"
|
||||||
|
cd ~/SetupCockpit && git pull
|
||||||
|
else
|
||||||
|
echo "${ORANGE}Cloning new SetupCockpit...${NC}"
|
||||||
|
cd && git clone ssh://flyingscorpio@2px.info.tm/~/repos/SetupCockpit.git
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Setting up VimConf..."
|
||||||
|
if [ -e ~/VimConf ]; then
|
||||||
|
echo "${GREEN}VimConf is already there, updating...${NC}"
|
||||||
|
cd ~/VimConf && git pull
|
||||||
|
else
|
||||||
|
echo "${ORANGE}Cloning new VimConf...${NC}"
|
||||||
|
cd && git clone ssh://flyingscorpio@2px.info.tm/~/repos/VimConf.git
|
||||||
|
fi
|
||||||
|
cd ~/VimConf && /bin/bash ~/VimConf/update.sh "$OS"
|
||||||
|
|
||||||
|
|
||||||
###################
|
###################
|
||||||
# REPOS ON GITLAB #
|
# REPOS ON GITLAB #
|
||||||
|
@ -66,24 +69,24 @@ fi
|
||||||
|
|
||||||
if [ ! -e ~/SRC ]; then
|
if [ ! -e ~/SRC ]; then
|
||||||
mkdir ~/SRC
|
mkdir ~/SRC
|
||||||
echo "Created ~/SRC"
|
echo "${ORANGE}Created ~/SRC${NC}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Setting up e2li/depydoc..."
|
echo "Setting up e2li/depydoc..."
|
||||||
if [ -e ~/SRC/depydoc ]; then
|
if [ -e ~/SRC/depydoc ]; then
|
||||||
echo "depydoc is already there, updating..."
|
echo "${GREEN}depydoc is already there, updating..${NC}."
|
||||||
cd ~/SRC/depydoc && git pull
|
cd ~/SRC/depydoc && git pull
|
||||||
else
|
else
|
||||||
echo "Cloning new depydoc..."
|
echo "${ORANGE}Cloning new depydoc...${NC}"
|
||||||
cd ~/SRC && git clone https://gitlab.com/e2li/depydoc.git
|
cd ~/SRC && git clone https://gitlab.com/e2li/depydoc.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Setting up 2px..."
|
echo "Setting up 2px..."
|
||||||
if [ -e ~/SRC/2px ]; then
|
if [ -e ~/SRC/2px ]; then
|
||||||
echo "2px is already there, updating..."
|
echo "${GREEN}2px is already there, updating...${NC}"
|
||||||
cd ~/SRC/2px && git pull
|
cd ~/SRC/2px && git pull
|
||||||
else
|
else
|
||||||
echo "Cloning new 2px..."
|
echo "${ORANGE}Cloning new 2px...${NC}"
|
||||||
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/2px.git
|
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/2px.git
|
||||||
cd ~/SRC/2px && python3 -m venv env
|
cd ~/SRC/2px && python3 -m venv env
|
||||||
echo "
|
echo "
|
||||||
|
@ -98,28 +101,28 @@ fi
|
||||||
|
|
||||||
echo "Setting up BlurMySearches..."
|
echo "Setting up BlurMySearches..."
|
||||||
if [ -e ~/SRC/BlurMySearches ]; then
|
if [ -e ~/SRC/BlurMySearches ]; then
|
||||||
echo "BlurMySearches is already there, updating..."
|
echo "${GREEN}BlurMySearches is already there, updating...${NC}"
|
||||||
cd ~/SRC/BlurMySearches && git pull
|
cd ~/SRC/BlurMySearches && git pull
|
||||||
else
|
else
|
||||||
echo "Cloning new BlurMySearches..."
|
echo "${ORANGE}Cloning new BlurMySearches...${NC}"
|
||||||
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/BlurMySearches.git
|
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/BlurMySearches.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Setting up JsonToPython..."
|
echo "Setting up JsonToPython...${NC}"
|
||||||
if [ -e ~/SRC/JsonToPython ]; then
|
if [ -e ~/SRC/JsonToPython ]; then
|
||||||
echo "JsonToPython is already there, updating..."
|
echo "${GREEN}JsonToPython is already there, updating...${NC}"
|
||||||
cd ~/SRC/JsonToPython && git pull
|
cd ~/SRC/JsonToPython && git pull
|
||||||
else
|
else
|
||||||
echo "Cloning new JsonToPython..."
|
echo "${ORANGE}Cloning new JsonToPython...${NC}"
|
||||||
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/JsonToPython.git
|
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/JsonToPython.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Setting up LVEL-website..."
|
echo "Setting up LVEL-website..."
|
||||||
if [ -e ~/SRC/LVEL-website ]; then
|
if [ -e ~/SRC/LVEL-website ]; then
|
||||||
echo "LVEL-website is already there, updating..."
|
echo "${GREEN}LVEL-website is already there, updating...${NC}"
|
||||||
cd ~/SRC/LVEL-website && git pull
|
cd ~/SRC/LVEL-website && git pull
|
||||||
else
|
else
|
||||||
echo "Cloning new LVEL-website..."
|
echo "${ORANGE}Cloning new LVEL-website...${NC}"
|
||||||
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/LVEL-website.git
|
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/LVEL-website.git
|
||||||
cd ~/SRC/LVEL-website && python3 -m venv env
|
cd ~/SRC/LVEL-website && python3 -m venv env
|
||||||
echo "
|
echo "
|
||||||
|
@ -134,72 +137,72 @@ fi
|
||||||
|
|
||||||
echo "Setting up MarioSokoban..."
|
echo "Setting up MarioSokoban..."
|
||||||
if [ -e ~/SRC/MarioSokoban ]; then
|
if [ -e ~/SRC/MarioSokoban ]; then
|
||||||
echo "MarioSokoban is already there, updating..."
|
echo "${GREEN}MarioSokoban is already there, updating...${NC}"
|
||||||
cd ~/SRC/MarioSokoban && git pull
|
cd ~/SRC/MarioSokoban && git pull
|
||||||
else
|
else
|
||||||
echo "Cloning new MarioSokoban..."
|
echo "${ORANGE}Cloning new MarioSokoban...${NC}"
|
||||||
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/MarioSokoban.git
|
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/MarioSokoban.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Setting up PythonLocalBlockchain..."
|
echo "Setting up PythonLocalBlockchain..."
|
||||||
if [ -e ~/SRC/PythonLocalBlockchain ]; then
|
if [ -e ~/SRC/PythonLocalBlockchain ]; then
|
||||||
echo "PythonLocalBlockchain is already there, updating..."
|
echo "${GREEN}PythonLocalBlockchain is already there, updating...${NC}"
|
||||||
cd ~/SRC/PythonLocalBlockchain && git pull
|
cd ~/SRC/PythonLocalBlockchain && git pull
|
||||||
else
|
else
|
||||||
echo "Cloning new PythonLocalBlockchain..."
|
echo "${ORANGE}Cloning new PythonLocalBlockchain...${NC}"
|
||||||
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/PythonLocalBlockchain.git
|
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/PythonLocalBlockchain.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Setting up Roboc-GUI..."
|
echo "Setting up Roboc-GUI..."
|
||||||
if [ -e ~/SRC/Roboc-GUI ]; then
|
if [ -e ~/SRC/Roboc-GUI ]; then
|
||||||
echo "Roboc-GUI is already there, updating..."
|
echo "${GREEN}Roboc-GUI is already there, updating...${NC}"
|
||||||
cd ~/SRC/Roboc-GUI && git pull
|
cd ~/SRC/Roboc-GUI && git pull
|
||||||
else
|
else
|
||||||
echo "Cloning new Roboc-GUI..."
|
echo "${ORANGE}Cloning new Roboc-GUI...${NC}"
|
||||||
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/Roboc-GUI.git
|
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/Roboc-GUI.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Setting up Roboc-console..."
|
echo "Setting up Roboc-console..."
|
||||||
if [ -e ~/SRC/Roboc-console ]; then
|
if [ -e ~/SRC/Roboc-console ]; then
|
||||||
echo "Roboc-console is already there, updating..."
|
echo "${GREEN}Roboc-console is already there, updating...${NC}"
|
||||||
cd ~/SRC/Roboc-console && git pull
|
cd ~/SRC/Roboc-console && git pull
|
||||||
else
|
else
|
||||||
echo "Cloning new Roboc-console..."
|
echo "${ORANGE}Cloning new Roboc-console...${NC}"
|
||||||
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/Roboc-console
|
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/Roboc-console
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Setting up SudokuSolver..."
|
echo "Setting up SudokuSolver..."
|
||||||
if [ -e ~/SRC/SudokuSolver ]; then
|
if [ -e ~/SRC/SudokuSolver ]; then
|
||||||
echo "SudokuSolver is already there, updating..."
|
echo "${GREEN}SudokuSolver is already there, updating...${NC}"
|
||||||
cd ~/SRC/SudokuSolver && git pull
|
cd ~/SRC/SudokuSolver && git pull
|
||||||
else
|
else
|
||||||
echo "Cloning new SudokuSolver..."
|
echo "${ORANGE}Cloning new SudokuSolver...${NC}"
|
||||||
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/SudokuSolver.git
|
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/SudokuSolver.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Setting up TicTacToe..."
|
echo "Setting up TicTacToe..."
|
||||||
if [ -e ~/SRC/TicTacToe ]; then
|
if [ -e ~/SRC/TicTacToe ]; then
|
||||||
echo "TicTacToe is already there, updating..."
|
echo "${GREEN}TicTacToe is already there, updating...${NC}"
|
||||||
cd ~/SRC/TicTacToe && git pull
|
cd ~/SRC/TicTacToe && git pull
|
||||||
else
|
else
|
||||||
echo "Cloning new TicTacToe..."
|
echo "${ORANGE}Cloning new TicTacToe...${NC}"
|
||||||
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/TicTacToe.git
|
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/TicTacToe.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Setting up WhitespaceInterpreter..."
|
echo "Setting up WhitespaceInterpreter..."
|
||||||
if [ -e ~/SRC/WhitespaceInterpreter ]; then
|
if [ -e ~/SRC/WhitespaceInterpreter ]; then
|
||||||
echo "WhitespaceInterpreter is already there, updating..."
|
echo "${GREEN}WhitespaceInterpreter is already there, updating...${NC}"
|
||||||
cd ~/SRC/WhitespaceInterpreter && git pull
|
cd ~/SRC/WhitespaceInterpreter && git pull
|
||||||
else
|
else
|
||||||
echo "Cloning new WhitespaceInterpreter..."
|
echo "${ORANGE}Cloning new WhitespaceInterpreter...${NC}"
|
||||||
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/WhitespaceInterpreter.git
|
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/WhitespaceInterpreter.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Setting up WikipediaAcronymScraper..."
|
echo "Setting up WikipediaAcronymScraper..."
|
||||||
if [ -e ~/SRC/WikipediaAcronymScraper ]; then
|
if [ -e ~/SRC/WikipediaAcronymScraper ]; then
|
||||||
echo "WikipediaAcronymScraper is already there, updating..."
|
echo "${GREEN}WikipediaAcronymScraper is already there, updating...${NC}"
|
||||||
cd ~/SRC/WikipediaAcronymScraper && git pull
|
cd ~/SRC/WikipediaAcronymScraper && git pull
|
||||||
else
|
else
|
||||||
echo "Cloning new WikipediaAcronymScraper..."
|
echo "${ORANGE}Cloning new WikipediaAcronymScraper...${NC}"
|
||||||
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/WikipediaAcronymScraper.git
|
cd ~/SRC && git clone https://gitlab.com/flyingscorpio/WikipediaAcronymScraper.git
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -45,7 +45,7 @@ fi
|
||||||
echo "Using $OS"
|
echo "Using $OS"
|
||||||
export OS
|
export OS
|
||||||
|
|
||||||
/bin/bash ~/PersonnalScripts/SetupCockpit/separator.sh
|
/bin/bash ~/SetupCockpit/separator.sh
|
||||||
|
|
||||||
|
|
||||||
###################
|
###################
|
||||||
|
@ -55,15 +55,15 @@ export OS
|
||||||
echo "Installing scripts..."
|
echo "Installing scripts..."
|
||||||
|
|
||||||
if [ "$OS" = 'debian' ]; then
|
if [ "$OS" = 'debian' ]; then
|
||||||
/bin/bash ~/PersonnalScripts/SetupCockpit/debian_based_installs.sh
|
/bin/bash ~/SetupCockpit/debian_based_installs.sh
|
||||||
elif [ "$OS" = 'arch' ]; then
|
elif [ "$OS" = 'arch' ]; then
|
||||||
/bin/bash ~/PersonnalScripts/SetupCockpit/arch_based_installs.sh
|
/bin/bash ~/SetupCockpit/arch_based_installs.sh
|
||||||
else
|
else
|
||||||
echo "${RED} Didn't receive correct OS information, quitting...${NC}"
|
echo "${RED} Didn't receive correct OS information, quitting...${NC}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/bin/bash ~/PersonnalScripts/SetupCockpit/separator.sh
|
/bin/bash ~/SetupCockpit/separator.sh
|
||||||
|
|
||||||
|
|
||||||
########################
|
########################
|
||||||
|
@ -71,13 +71,13 @@ fi
|
||||||
########################
|
########################
|
||||||
|
|
||||||
echo "Updating .bash_aliases..."
|
echo "Updating .bash_aliases..."
|
||||||
if cp ~/PersonnalScripts/SetupCockpit/.bash_aliases ~/.bash_aliases; then
|
if cp ~/SetupCockpit/bash_aliases ~/.bash_aliases; then
|
||||||
echo "${GREEN}Successfully updated .bash_aliases${NC}"
|
echo "${GREEN}Successfully updated .bash_aliases${NC}"
|
||||||
else
|
else
|
||||||
echo "${ORANGE}There was a problem while updating .bash_aliases${NC}"
|
echo "${ORANGE}There was a problem while updating .bash_aliases${NC}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/bin/bash ~/PersonnalScripts/SetupCockpit/separator.sh
|
/bin/bash ~/SetupCockpit/separator.sh
|
||||||
|
|
||||||
|
|
||||||
#################
|
#################
|
||||||
|
@ -93,7 +93,7 @@ git config --global alias.co "checkout"
|
||||||
git config --global alias.st "status"
|
git config --global alias.st "status"
|
||||||
git config --global alias.br "branch"
|
git config --global alias.br "branch"
|
||||||
|
|
||||||
/bin/bash ~/PersonnalScripts/SetupCockpit/separator.sh
|
/bin/bash ~/SetupCockpit/separator.sh
|
||||||
|
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
@ -111,10 +111,10 @@ echo "<?xml version=\"1.0\"?>
|
||||||
<glob pattern=\"*.mkd\"/>
|
<glob pattern=\"*.mkd\"/>
|
||||||
<glob pattern=\"*.markdown\"/>
|
<glob pattern=\"*.markdown\"/>
|
||||||
</mime-type>
|
</mime-type>
|
||||||
</mime-info>" >> ~/.local/share/mime/packages/text-markdown.xml
|
</mime-info>" > ~/.local/share/mime/packages/text-markdown.xml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
/bin/bash ~/PersonnalScripts/SetupCockpit/separator.sh
|
/bin/bash ~/SetupCockpit/separator.sh
|
||||||
|
|
||||||
|
|
||||||
##################
|
##################
|
||||||
|
@ -125,7 +125,7 @@ echo "Cloning projects..."
|
||||||
|
|
||||||
/bin/bash clone_projects.sh
|
/bin/bash clone_projects.sh
|
||||||
|
|
||||||
/bin/bash ~/PersonnalScripts/SetupCockpit/separator.sh
|
/bin/bash ~/SetupCockpit/separator.sh
|
||||||
|
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
|
@ -136,4 +136,4 @@ echo "Configuring ProtonVPN..."
|
||||||
|
|
||||||
sudo protonvpn init && sudo protonvpn c --cc NL
|
sudo protonvpn init && sudo protonvpn c --cc NL
|
||||||
|
|
||||||
/bin/bash ~/PersonnalScripts/SetupCockpit/separator.sh
|
/bin/bash ~/SetupCockpit/separator.sh
|
||||||
|
|
Loading…
Add table
Reference in a new issue