PortValhalla/scripts/Common/Software/docker/services/wekan/main.fish

31 lines
830 B
Fish
Raw Normal View History

2024-11-22 00:54:50 +00:00
#!/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)
2024-11-27 02:41:26 +00:00
set -l overrides (getServiceOverrides $argv)
2024-11-22 00:54:50 +00:00
initializeServiceInstallation $argv
2024-11-27 02:41:26 +00:00
sudo cp "$dir/docker-compose.base.yml" (getServiceRoot $argv)
2024-11-29 00:13:58 +00:00
URL="https://$domain" yq "$(getServiceKey "$service").environment.ROOT_URL = env(URL)" "$dir/$(basename "$overrides")" |
2024-11-27 02:41:26 +00:00
sudo tee "$overrides" >/dev/null
2024-11-22 00:54:50 +00:00
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