Skip to content

Commit

Permalink
Merge pull request #38 from tuxmea/fix_env_api_setting
Browse files Browse the repository at this point in the history
make setting of env api endpoint idempotent
  • Loading branch information
tuxmea authored Dec 15, 2023
2 parents 7e6f9d4 + 1031e3c commit e51bf15
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 e51bf15

Please sign in to comment.