Skip to content

Commit f3dbbaa

Browse files
committed
fix: make it work on alpine again
1 parent 727d0ec commit f3dbbaa

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

openvoxserver/container-entrypoint.d/20-use-templates-initially.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ set -e
88
TEMPLATES=/var/tmp/puppet
99

1010
cd /etc/puppetlabs/puppet
11-
for f in auth.conf hiera.yaml puppet.conf puppetdb.conf
12-
do
13-
test -f "$TEMPLATES/$f" && cp -p --update=none "$TEMPLATES/$f" .
11+
for f in auth.conf hiera.yaml puppet.conf puppetdb.conf; do
12+
[ -f "$TEMPLATES/$f" ] && [ ! -f "$f" ] && {
13+
echo "Copying template $f from $TEMPLATES"
14+
cp -p "$TEMPLATES/$f" .
15+
}
1416
done
1517
cd /
1618

0 commit comments

Comments
 (0)