From 9affc539b200c4e858ca95bbfc2e071176dac5e4 Mon Sep 17 00:00:00 2001 From: Michael Birse Date: Tue, 17 Oct 2023 10:17:56 +1100 Subject: [PATCH] sed compatibility fix --- upgrade.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upgrade.sh b/upgrade.sh index 9e497123..c74f54f2 100755 --- a/upgrade.sh +++ b/upgrade.sh @@ -115,9 +115,9 @@ if [ ! -f ${COMPOSE_ENV_FILE} ]; then cp "${COMPOSE_ENV_FILE}.sample" "${COMPOSE_ENV_FILE}" else # Convert GRAFANAUSER to PWD_USER in existing compose env file (required in 2.10.0) - sed -i "s@GRAFANAUSER@PWD_USER@g" "${COMPOSE_ENV_FILE}" + sed -i.bak "s@GRAFANAUSER@PWD_USER@g" "${COMPOSE_ENV_FILE}" if grep -q "^PWD_USER=\"1000:1000\"" "${COMPOSE_ENV_FILE}"; then - sed -i "s@^PWD_USER=\"1000:1000\"@#PWD_USER=\"1000:1000\"@g" "${COMPOSE_ENV_FILE}" + sed -i.bak "s@^PWD_USER=\"1000:1000\"@#PWD_USER=\"1000:1000\"@g" "${COMPOSE_ENV_FILE}" fi fi