This commit is contained in:
deathbybandaid 2022-03-11 11:44:46 -05:00
parent 471b7b6364
commit e10d990f1c
3 changed files with 32 additions and 1 deletions

View File

@ -22,7 +22,7 @@ do
echo "** $DEPENDENCYNAME Is Already Installed." echo "** $DEPENDENCYNAME Is Already Installed."
else else
echo "** Installing $DEPENDENCYNAME" echo "** Installing $DEPENDENCYNAME"
apt-get install -y $DEPENDENCYPACKAGE apt install -y $DEPENDENCYPACKAGE
fi fi
if which $DEPENDENCYNAME >/dev/null; if which $DEPENDENCYNAME >/dev/null;

View File

@ -3,3 +3,10 @@
`cd /etc` `cd /etc`
`git clone https://git.deathbybandaid.net/deathbybandaid/template_setup.git` `git clone https://git.deathbybandaid.net/deathbybandaid/template_setup.git`
## OR
`apt install curl`
`curl -sSL https://git.deathbybandaid.net/deathbybandaid/template_setup/raw/branch/master/install/install.sh | bash`

24
install/install.sh Normal file
View File

@ -0,0 +1,24 @@
#!/bin/bash
echo "Checking For git"
if which git >/dev/null;
then
echo "* git Is Already Installed."
else
echo "* Running Update command and Installing git"
apt update && apt install -y git
fi
echo "Checking for installation script"
template_setup_path="/etc/template_setup"
template_setup_git="https://git.deathbybandaid.net/deathbybandaid/template_setup.git"
if [ ! -d "$template_setup_path" ]; then
echo "* Installing Bash Aliases"
git clone --quiet $template_setup_git $template_setup_path
else
echo "* Updating Bash Aliases"
git -C $template_setup_path pull
fi
echo "Running installation"
bash "$template_setup_path/template_setup.sh"