truestuff/setup-catalog.sh

22 lines
564 B
Bash
Raw Normal View History

2023-05-09 03:08:59 +00:00
#! /usr/bin/env bash
2023-05-09 04:31:22 +00:00
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
USER_HOME=$HOME
[[ -n "${SUDO_USER}" ]] && USER_HOME="$(eval "echo ~${SUDO_USER}")"
2023-07-12 03:17:21 +00:00
. ${SHRC_D:-$SCRIPT_DIR}/01_util.functions
2023-05-09 04:31:22 +00:00
2023-05-09 03:08:59 +00:00
set -e
setup_catalog() {
printf 'Setting up catalog: truecharts...'
midclt call catalog.create '{
"label": "truecharts",
"repository": "https://github.com/truecharts/catalog",
"branch": "main",
2023-07-12 03:17:21 +00:00
"preferred_trains": ["stable", "operators", "enterprise"]
2023-05-09 03:08:59 +00:00
}'
printf '\n'
}
setup_catalog