Files
dtic-DIIAA/scripts/decrypt_env.sh
T

8 lines
252 B
Bash
Executable File

#!/bin/bash
if [ -f ".env.enc" ]; then
openssl enc -d -aes-256-cbc -in .env.enc -out .env -pass pass:"\$2y\$10\$Xo7lM" 2>/dev/null
echo "Secret successfully decrypted to .env for temporary use."
else
echo "Encrypted .env.enc not found."
fi