standard install
This commit is contained in:
633507
Miniconda3-latest-Linux-x86_64.sh
Normal file
633507
Miniconda3-latest-Linux-x86_64.sh
Normal file
File diff suppressed because one or more lines are too long
30
setup.sh
30
setup.sh
@@ -2,17 +2,17 @@
|
|||||||
# Function to check if Docker is installed
|
# Function to check if Docker is installed
|
||||||
check_docker_installed() {
|
check_docker_installed() {
|
||||||
if command -v docker &> /dev/null; then
|
if command -v docker &> /dev/null; then
|
||||||
return 0 # Docker is installed
|
return 1 # Docker is installed
|
||||||
else
|
else
|
||||||
return 1 # Docker is not installed
|
return 0 # Docker is not installed
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
check_tailscale_installed() {
|
check_tailscale_installed() {
|
||||||
if command -v tailscale &> /dev/null; then
|
if command -v tailscale &> /dev/null; then
|
||||||
return 0 # Tailscale is installed
|
return 1 # Tailscale is installed
|
||||||
else
|
else
|
||||||
return 1 # Tailscale is not installed
|
return 0 # Tailscale is not installed
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -41,6 +41,7 @@ else
|
|||||||
|
|
||||||
echo adding current user to docker usermod
|
echo adding current user to docker usermod
|
||||||
sudo usermod -aG docker $USER
|
sudo usermod -aG docker $USER
|
||||||
|
newgrp docker
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### Install Miniconda ###
|
### Install Miniconda ###
|
||||||
@@ -55,24 +56,25 @@ else
|
|||||||
echo installing tailscale
|
echo installing tailscale
|
||||||
curl -fsSL https://tailscale.com/install.sh | sh
|
curl -fsSL https://tailscale.com/install.sh | sh
|
||||||
fi
|
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 ###
|
### Docker Containers to Compose ###
|
||||||
declare -a arr=(
|
# declare -a arr=(
|
||||||
# caddy
|
# caddy
|
||||||
# tailscale
|
# tailscale
|
||||||
# immich-app
|
# immich-app
|
||||||
# mysql
|
# mysql
|
||||||
# gitea
|
# gitea
|
||||||
)
|
# )
|
||||||
|
|
||||||
for i in "${arr[@]}"
|
#for i in "${arr[@]}"
|
||||||
do
|
#do
|
||||||
echo docker composing: "$i"
|
# echo docker composing: "$i"
|
||||||
cd ./$i
|
# cd ./$i
|
||||||
docker compose up -d --build
|
# docker compose up -d --build
|
||||||
cd ..
|
# cd ..
|
||||||
done
|
#done
|
||||||
|
|
||||||
### Install Conda ###
|
### Install Conda ###
|
||||||
# echo installing mini conda
|
# echo installing mini conda
|
||||||
|
|||||||
Reference in New Issue
Block a user