10 lines
315 B
Bash
Executable File
10 lines
315 B
Bash
Executable File
#!/bin/bash
|
|
path=$(dirname $(dirname $(realpath $0)))
|
|
for j in $path/*/application.yml; do
|
|
app=$(dirname $j)
|
|
test -f "$app/values.yml" && continue
|
|
test -f "$app/values.yaml" && continue
|
|
appname=$(basename $app)
|
|
cat application.tpl | sed -e "s/foobar/$appname/g" > applications/$appname.yml
|
|
done
|