mirror of
https://ghproxy.com/https://github.com/truecharts/charts.git
synced 2026-02-04 05:13:16 +08:00
22 lines
692 B
Bash
Executable File
22 lines
692 B
Bash
Executable File
#!/bin/bash
|
|
|
|
app="${1}"
|
|
|
|
if test -f "/containers/apps/${app}/latest-version.sh"; then
|
|
version=$(bash "/containers/apps/${app}/latest-version.sh")
|
|
if [[ ! -z "${version}" || "${version}" != "null" ]]; then
|
|
echo "${version}" | tee "/containers/apps/${app}/VERSION" >/dev/null
|
|
echo "App: ${app} using version: ${version}"
|
|
fi
|
|
fi
|
|
|
|
if test -f "/containers/apps/${app}/BASE"; then
|
|
if test -f "/containers/apps/${app}/latest-base.sh"; then
|
|
base=$(bash "/containers/apps/${app}/latest-base.sh")
|
|
if [[ ! -z "${base}" || "${base}" != "null" ]]; then
|
|
echo "${base}" | tee "/containers/apps/${app}/BASE" >/dev/null
|
|
echo "App: ${app} using Base: ${base}"
|
|
fi
|
|
fi
|
|
fi
|