Merge pull request #764 from makeplane/fix/setup

dev: fix setup.sh causing tr Illegal byte sequence
This commit is contained in:
Vamsi Kurama 2023-04-10 17:45:20 +05:30 committed by GitHub
commit 3618f79f89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,4 +4,6 @@ cp ./apiserver/.env.example ./apiserver/.env
cp ./apps/app/.env.example ./apps/app/.env
echo -e "\nNEXT_PUBLIC_API_BASE_URL=http://$1" >> ./apps/app/.env
echo -e "\nSECRET_KEY=\"$(tr -dc 'a-z0-9!@#$%^&*(-_=+)' < /dev/urandom | head -c50)\"" >> ./apiserver/.env
export LC_ALL=C
export LC_CTYPE=C
echo -e "\nSECRET_KEY=\"$(tr -dc 'a-z0-9!@#$%^&*(-_=+)' < /dev/urandom | head -c50)\"" >> ./apiserver/.env