„install.sh“ ändern
This commit is contained in:
parent
848725967d
commit
ca688a977a
20
install.sh
20
install.sh
@ -33,23 +33,11 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Install Docker
|
# Install Docker
|
||||||
echo "Installing Docker..."
|
read -p "Do you want to install Docker? (y/n) " INSTALL_DOCKER
|
||||||
$PACKAGE_MANAGER update
|
if [ "$INSTALL_DOCKER" == "y" ]; then
|
||||||
$PACKAGE_MANAGER install -y docker
|
echo "Installing Docker ..."
|
||||||
|
|
||||||
# Start Docker
|
|
||||||
echo "Starting Docker..."
|
|
||||||
systemctl start docker
|
|
||||||
|
|
||||||
# Enable Docker to start at boot
|
|
||||||
echo "Enabling Docker at boot..."
|
|
||||||
systemctl enable docker
|
|
||||||
|
|
||||||
# Install Docker Compose
|
|
||||||
read -p "Do you want to install Docker Compose? (y/n) " INSTALL_COMPOSE
|
|
||||||
if [ "$INSTALL_COMPOSE" == "y" ]; then
|
|
||||||
echo "Installing Docker Compose..."
|
|
||||||
if [ "$PACKAGE_MANAGER" == "apt-get" ] then
|
if [ "$PACKAGE_MANAGER" == "apt-get" ] then
|
||||||
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-auto-installer/raw/branch/main/debian.sh)"
|
bash -c "$(curl -L https://git.moelle.space/hxcde/docker-auto-installer/raw/branch/main/debian.sh)"
|
||||||
elif [ "$PACKAGE_MANAGER" == "apt-get-ubuntu" ]; then
|
elif [ "$PACKAGE_MANAGER" == "apt-get-ubuntu" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user