mirror of
https://github.com/stellarshenson/stellars-jupyterhub-ds.git
synced 2026-03-08 06:00:29 +00:00
- Add optional CIFS mount support via compose_cifs.yml and .env - Create install_cert.sh for Linux (multi-distro support) - Enhance install_cert.bat with folder argument and help flags - Fix compose_override.yml stray quote, add idle culler defaults - Enhance generate-certs.sh with generic CN and verification - Update start.sh/stop.sh to support ENABLE_CIFS from .env - Update README with CIFS and certificate installation docs
26 lines
529 B
Bash
Executable File
26 lines
529 B
Bash
Executable File
#!/bin/bash
|
|
# Stop services
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
# Default configuration (override via .env)
|
|
ENABLE_CIFS="${ENABLE_CIFS:-0}"
|
|
|
|
# Load environment variables if .env exists
|
|
if [[ -f .env ]]; then
|
|
source .env
|
|
fi
|
|
|
|
# Build compose command with optional CIFS mount
|
|
COMPOSE_FILES="-f stellars-jupyterhub-ds/compose.yml -f compose_override.yml"
|
|
if [[ "${ENABLE_CIFS}" == "1" ]]; then
|
|
COMPOSE_FILES="${COMPOSE_FILES} -f compose_cifs.yml"
|
|
fi
|
|
|
|
echo "Stopping services..."
|
|
docker compose ${COMPOSE_FILES} down
|
|
|
|
echo "Done."
|