test
This commit is contained in:
parent
471b7b6364
commit
e10d990f1c
@ -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;
|
||||||
|
|||||||
@ -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
24
install/install.sh
Normal 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"
|
||||||
Loading…
Reference in New Issue
Block a user