#!/bin/bash # Marketplace install hooks — seed the served docroot. The generic installApp # driver handles compose/start; this converges the browse-UI files on every # (re)install (always refreshed from the definition), while published channel # data (stable/, edge/ — the operator's signed catalog) is never touched. marketplace_install_post_setup() { local app_name="$1" local src="${install_containers_dir%/}/$app_name/resources/site" local dest="$containers_dir$app_name/data" runFileOp mkdir -p "$dest" || return 1 runFileOp cp -f "$src/index.html" "$dest/index.html" || return 1 runFileOp cp -f "${install_containers_dir%/}/$app_name/$app_name.svg" "$dest/marketplace.svg" || return 1 isSuccessful "Marketplace site seeded. Publish a catalog into it: rsync dist// $dest//" }