standard install
This commit is contained in:
30
setup.sh
30
setup.sh
@@ -2,17 +2,17 @@
|
||||
# Function to check if Docker is installed
|
||||
check_docker_installed() {
|
||||
if command -v docker &> /dev/null; then
|
||||
return 0 # Docker is installed
|
||||
return 1 # Docker is installed
|
||||
else
|
||||
return 1 # Docker is not installed
|
||||
return 0 # Docker is not installed
|
||||
fi
|
||||
}
|
||||
|
||||
check_tailscale_installed() {
|
||||
if command -v tailscale &> /dev/null; then
|
||||
return 0 # Tailscale is installed
|
||||
return 1 # Tailscale is installed
|
||||
else
|
||||
return 1 # Tailscale is not installed
|
||||
return 0 # Tailscale is not installed
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -41,6 +41,7 @@ else
|
||||
|
||||
echo adding current user to docker usermod
|
||||
sudo usermod -aG docker $USER
|
||||
newgrp docker
|
||||
fi
|
||||
|
||||
### Install Miniconda ###
|
||||
@@ -55,24 +56,25 @@ else
|
||||
echo installing tailscale
|
||||
curl -fsSL https://tailscale.com/install.sh | sh
|
||||
fi
|
||||
sudo tailscale up --auth-key=tskey-auth-koHiorB8cj11CNTRL-dLaNRmukCWL5BurtnvU2WLDbrv4SDhVDX --hostname=IONOS --ssh
|
||||
#sudo tailscale up --auth-key=tskey-auth-koHiorB8cj11CNTRL-dLaNRmukCWL5BurtnvU2WLDbrv4SDhVDX --hostname=IONOS --ssh
|
||||
sudo tailscale up --ssh
|
||||
|
||||
### Docker Containers to Compose ###
|
||||
declare -a arr=(
|
||||
# declare -a arr=(
|
||||
# caddy
|
||||
# tailscale
|
||||
# immich-app
|
||||
# mysql
|
||||
# gitea
|
||||
)
|
||||
# )
|
||||
|
||||
for i in "${arr[@]}"
|
||||
do
|
||||
echo docker composing: "$i"
|
||||
cd ./$i
|
||||
docker compose up -d --build
|
||||
cd ..
|
||||
done
|
||||
#for i in "${arr[@]}"
|
||||
#do
|
||||
# echo docker composing: "$i"
|
||||
# cd ./$i
|
||||
# docker compose up -d --build
|
||||
# cd ..
|
||||
#done
|
||||
|
||||
### Install Conda ###
|
||||
# echo installing mini conda
|
||||
|
||||
Reference in New Issue
Block a user