From a16514ed11fca57055e1c4c497e0dc3e938b7606 Mon Sep 17 00:00:00 2001 From: pablohashescobar <118773738+pablohashescobar@users.noreply.github.com> Date: Thu, 25 May 2023 12:24:03 +0530 Subject: [PATCH] fix: auto generated secret key to only generate hexadecimal characters (#1133) --- setup.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 0b4ee279f..f4ca1ea6d 100755 --- a/setup.sh +++ b/setup.sh @@ -5,6 +5,7 @@ cp ./.env.example ./.env export LC_ALL=C export LC_CTYPE=C + # Generate the NEXT_PUBLIC_API_BASE_URL with given IP echo -e "\nNEXT_PUBLIC_API_BASE_URL=http://$1" >> ./.env @@ -12,4 +13,4 @@ echo -e "\nNEXT_PUBLIC_API_BASE_URL=http://$1" >> ./.env echo -e "SECRET_KEY=\"$(tr -dc 'a-z0-9!@#$%^&*(-_=+)' < /dev/urandom | head -c50)\"" >> ./.env # WEB_URL for email redirection and image saving -echo -e "WEB_URL=$1" >> ./.env \ No newline at end of file +echo -e "WEB_URL=$1" >> ./.env