docker-scripts/template_prep.sh
2025-03-11 11:09:52 -07:00

6 lines
286 B
Bash
Executable file

#!/bin/bash
find "${HOME}/Dockers/" -iname '*.env' -not -iname '.*' -exec cp "{}" "{}_template" \;
cp "${HOME}/Dockers/.env" "${HOME}/Dockers/.env_template"
find "${HOME}/Dockers/" -iname '*.env_template' -exec sed -i 's/=.*/=/' {} \;
sed -i 's/=.*/=/' "${HOME}/Dockers/.env_template"