standardize apt-get

This commit is contained in:
aptalca 2021-06-16 17:14:33 -04:00
parent 67bd4376d7
commit c83ea1a706
2 changed files with 9 additions and 11 deletions

View File

@ -0,0 +1,3 @@
#!/usr/bin/with-contenv bash
apt-get update

View File

@ -4,17 +4,12 @@ echo "*** AWSCLI Installer ***"
echo "Checking if awscli is installed"
if ! aws -v COMMAND &> /dev/null; then
echo "aws not installed, installing now..."
if ! pip -v COMMAND &> /dev/null
then
echo "pip3 not installed, installing now..."
apt-get update
apt-get install python3 python3-pip -y
echo "awscli not installed, installing now..."
if ! pip3 -v COMMAND &> /dev/null; then
echo "pip3 not installed, installing now..."
apt-get install python3 python3-pip -y
fi
pip3 install awscli
fi
else
echo "aws installed skipping!"
echo "awscli already installed, skipping!"
fi