mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 00:45:46 -04:00
standardize apt-get
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
|
apt-get update
|
||||||
@@ -4,17 +4,12 @@ echo "*** AWSCLI Installer ***"
|
|||||||
echo "Checking if awscli is installed"
|
echo "Checking if awscli is installed"
|
||||||
|
|
||||||
if ! aws -v COMMAND &> /dev/null; then
|
if ! aws -v COMMAND &> /dev/null; then
|
||||||
|
echo "awscli not installed, installing now..."
|
||||||
echo "aws not installed, installing now..."
|
if ! pip3 -v COMMAND &> /dev/null; then
|
||||||
|
echo "pip3 not installed, installing now..."
|
||||||
if ! pip -v COMMAND &> /dev/null
|
apt-get install python3 python3-pip -y
|
||||||
then
|
fi
|
||||||
echo "pip3 not installed, installing now..."
|
|
||||||
apt-get update
|
|
||||||
apt-get install python3 python3-pip -y
|
|
||||||
pip3 install awscli
|
pip3 install awscli
|
||||||
fi
|
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "aws installed skipping!"
|
echo "awscli already installed, skipping!"
|
||||||
fi
|
fi
|
||||||
Reference in New Issue
Block a user