not needed anymore

This commit is contained in:
Girish Ramakrishnan 2023-07-11 20:24:18 +05:30
parent 4933820280
commit 1631b04cd0

View file

@ -2,9 +2,6 @@
set -eu
# migration remove in next release
[[ -d /app/data/runtime ]] && mv /app/data/runtime /app/data/storage
mkdir -p /app/data/storage /app/data/config
if [[ ! -f /app/data/config/prometheus.yml ]]; then
@ -21,11 +18,6 @@ if [[ ! -f /app/data/env.sh ]]; then
cp /app/pkg/env.sh.template /app/data/env.sh
fi
# migration remove in next release
if ! grep -q cli_option /app/data/env.sh; then
echo -e '\nexport cli_options="--storage.tsdb.retention.time=$retention_time --storage.tsdb.path=/app/data/storage"' >> /app/data/env.sh
fi
echo "=> Source custom variables for cli args"
source /app/data/env.sh