appstore-1panel/apps/meilisearch/1.10.1/scripts/upgrade.sh
renovate[bot] 0fe6ef1ff7
chore(deps): update getmeili/meilisearch docker tag to v1.10.1 (#2043)
* chore(deps): update getmeili/meilisearch docker tag to v1.10.1

* Update app version [skip ci]

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-action update-app-version <githubaction@githubaction.com>
2024-09-02 22:06:27 +08:00

17 lines
428 B
Bash

#!/bin/bash
ENV_FILE="./.env"
if [[ -f $ENV_FILE ]]; then
source "$ENV_FILE"
if [ -z "$MEILI_NO_ANALYTICS" ] || [ "$MEILI_NO_ANALYTICS" = "" ]; then
NEW_VALUE='"true"'
elif [ "$MEILI_NO_ANALYTICS" = "--no-analytics" ]; then
NEW_VALUE='"false"'
else
NEW_VALUE="\"$MEILI_NO_ANALYTICS\""
fi
sed -i "s/^MEILI_NO_ANALYTICS=.*/MEILI_NO_ANALYTICS=$NEW_VALUE/" "$ENV_FILE"
else
echo ".env 文件不存在"
fi