#!/usr/bin/env bash # Installs liqa into a target directory: writes a compose.yaml pulling the # published image (git.hq.ars9.space/ars9/liqa) and creates ./data for the # SQLite database, so the install directory needs no copy of this repo. set -euo pipefail REGISTRY_IMAGE="git.hq.ars9.space/ars9/liqa" read -rp "Install directory [./liqa]: " install_dir install_dir="${install_dir:-./liqa}" read -rp "Port to expose [13000]: " port port="${port:-13000}" read -rp "Version to install [latest]: " version version="${version:-latest}" mkdir -p "$install_dir/data" compose_file="$install_dir/compose.yaml" cat > "$compose_file" <