From 5b4cf6dc3b8c5bd761d8b938c873aa0b6210d894 Mon Sep 17 00:00:00 2001 From: Eric Nemchik Date: Mon, 14 Nov 2022 21:15:25 +0000 Subject: [PATCH] Don't error when migration file doesn't exist --- root/migrations/02-default-location | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/migrations/02-default-location b/root/migrations/02-default-location index d700b7f..d4119eb 100644 --- a/root/migrations/02-default-location +++ b/root/migrations/02-default-location @@ -4,7 +4,7 @@ DEFAULT_CONF="/config/nginx/site-confs/default.conf" OLD_ROOT="root /var/www/localhost/heimdall/public;" NEW_ROOT="root /app/www/public;" -if grep -q "${OLD_ROOT}" "${DEFAULT_CONF}";then +if grep -q "${OLD_ROOT}" "${DEFAULT_CONF}" 2>/dev/null; then echo "updating root in ${DEFAULT_CONF}" sed -i "s|${OLD_ROOT}|${NEW_ROOT}|" "${DEFAULT_CONF}" fi