Skip to content

Commit

Permalink
make setting of env api endpoint idempotent
Browse files Browse the repository at this point in the history
the script was not correct
  • Loading branch information
tuxmea committed Dec 15, 2023
1 parent 7e6f9d4 commit 1031e3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
#
if [[ "$PUPPETSERVER_ENABLE_ENV_CACHE_DEL_API" == true ]]; then
if [ $(grep 'puppet-admin-api' /etc/puppetlabs/puppetserver/conf.d/auth.conf) ]; then
if [[ $(grep 'puppet-admin-api' /etc/puppetlabs/puppetserver/conf.d/auth.conf) ]]; then
echo "Admin API already set"
else
/opt/puppetlabs/puppet/bin/ruby /add_cache_del_api_auth_rules.rb
Expand Down

0 comments on commit 1031e3c

Please sign in to comment.