Update the setting the db password in env script
This commit is contained in:
parent
9f601f59db
commit
4a66bbf3f1
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ PASSWORD=$(date +%s|sha256sum|base64|head -c 32)
|
||||||
if [[ ! -e .env ]]; then
|
if [[ ! -e .env ]]; then
|
||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
fi
|
fi
|
||||||
sed -i "s/^DB_PASSWORD=/DB_PASSWORD=$PASSWORD/g" .env
|
sed -i "s/^DB_PASSWORD=.*$/DB_PASSWORD=$PASSWORD/g" .env
|
||||||
decrypt_key=$(hexdump -vn16 -e'4/4 "%08x" 1 "\n"' /dev/random)
|
decrypt_key=$(hexdump -vn16 -e'4/4 "%08x" 1 "\n"' /dev/random)
|
||||||
echo $decrypt_key
|
echo $decrypt_key
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue