Merge claude/2
This commit is contained in:
commit
0c8b13d2f1
@ -8,11 +8,18 @@
|
|||||||
marketplace_install_post_setup()
|
marketplace_install_post_setup()
|
||||||
{
|
{
|
||||||
local app_name="$1"
|
local app_name="$1"
|
||||||
local src="${install_containers_dir%/}/$app_name/resources/site"
|
local def="${install_containers_dir%/}/$app_name"
|
||||||
local dest="$containers_dir$app_name/data"
|
local live="$containers_dir$app_name"
|
||||||
|
local dest="$live/data"
|
||||||
|
|
||||||
|
# The compose bind-mounts nginx.conf as a FILE; the generic installer
|
||||||
|
# copies only config+compose, and a premature container start leaves a
|
||||||
|
# directory placeholder at the mount path — converge both cases.
|
||||||
|
[[ -d "$live/nginx.conf" ]] && runFileOp rm -rf "$live/nginx.conf"
|
||||||
|
runFileOp cp -f "$def/nginx.conf" "$live/nginx.conf" || return 1
|
||||||
|
|
||||||
runFileOp mkdir -p "$dest" || return 1
|
runFileOp mkdir -p "$dest" || return 1
|
||||||
runFileOp cp -f "$src/index.html" "$dest/index.html" || return 1
|
runFileOp cp -f "$def/resources/site/index.html" "$dest/index.html" || return 1
|
||||||
runFileOp cp -f "${install_containers_dir%/}/$app_name/$app_name.svg" "$dest/marketplace.svg" || return 1
|
runFileOp cp -f "$def/$app_name.svg" "$dest/marketplace.svg" || return 1
|
||||||
isSuccessful "Marketplace site seeded. Publish a catalog into it: rsync dist/<channel>/ $dest/<channel>/"
|
isSuccessful "Marketplace site seeded. Publish a catalog into it: rsync dist/<channel>/ $dest/<channel>/"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user