#!/bin/env fish begin set -l dir (status dirname) set -l service wekan set -l domain due "" source "$dir/../service.fish" function installSW -V dir -V service -V domain set -l domain (getServiceDomain $domain) set -l overrides (getServiceOverrides $argv) initializeServiceInstallation $argv sudo cp "$dir/docker-compose.base.yml" (getServiceRoot $argv) URL="https://$domain" yq "$(getServiceKey "$service").environment.ROOT_URL = env(URL)" "$dir/$(basename "$overrides")" | sudo tee "$overrides" >/dev/null installDockerService $argv end function getServiceServers -V domain printf "%s\0" $domain end function getServiceLocations -V service printf "%s\0" "$service" / end runInstaller --force $argv end