Files
tam3/deployment/remote_server/start-server.sh

15 lines
394 B
Bash
Raw Normal View History

2025-10-11 14:25:03 -04:00
#!/bin/bash
gen_password=$(cat /dev/urandom | tr -dc A-Za-z0-9 | head -c 32)
echo "DB_LOCATION=./tam3-db" > .env
echo "DB_PASSWORD=${gen_password}" >> .env
if [ -x "$(command -v docker)" ]; then
docker compose up -d
2025-10-11 17:10:38 -04:00
elif [ -x "$(command -v podman)" ]; then
2025-10-11 14:25:03 -04:00
podman compose up -d
else
echo "Neither Docker nor Podman are installed. Please install whichever you prefer and try again."
exit 1
fi