mirror of
https://github.com/hanzoai/kms.git
synced 2026-10-17 11:18:16 +00:00
- Guard ZAP status check behind nil check (MPC_VAULT_ID optional) - .gitignore: /kmsd not kmsd (was blocking cmd/kmsd/ directory)
17 lines
328 B
Bash
Executable File
17 lines
328 B
Bash
Executable File
#!/bin/sh
|
|
|
|
ORIGINAL=$1
|
|
REPLACEMENT=$2
|
|
|
|
if [ "${ORIGINAL}" = "${REPLACEMENT}" ]; then
|
|
echo "Environment variable replacement is the same, skipping.."
|
|
exit 0
|
|
fi
|
|
|
|
echo "Replacing pre-baked value.."
|
|
|
|
find /app/public /app/.next -type f -name "*.js" |
|
|
while read file; do
|
|
sed -i "s|$ORIGINAL|$REPLACEMENT|g" "$file"
|
|
done
|