Skip to content

Commit

Permalink
(PDB-3832) Update permissions for ini files to match puppetlabs-puppe…
Browse files Browse the repository at this point in the history
…tdb module
  • Loading branch information
Morgan Rhodes committed Apr 28, 2020
1 parent b88f7ce commit 76a4a94
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions resources/ext/ezbake.conf
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,18 @@ ezbake: {
" fi",
" /sbin/service puppetdb start > /dev/null 2>&1",
" fi)"
]
],
postinst-install: [
"find /etc/puppetlabs/puppetdb/conf.d/ -type f -name '*.ini' -exec chown {{user}}: {} \\; -exec chmod 600 {} \\; ||:"
],
},
debian: { dependencies: ["puppet-agent (>= 5.99.0)"],
preinst: ["if [ \"$1\" = upgrade ] && [ \"${2%%.*}\" -le 2 ] ; then tar -czf /tmp/puppetdb-upgrade-config-files.tgz -C /etc/puppetdb/conf.d config.ini database.ini jetty.ini ; fi"],
postinst: ["/opt/puppetlabs/server/bin/puppetdb config-migration",
"/opt/puppetlabs/server/bin/puppetdb ssl-setup"] }
"/opt/puppetlabs/server/bin/puppetdb ssl-setup"],
postinst-install: [
"find /etc/puppetlabs/puppetdb/conf.d/ -type f -name '*.ini' -exec chown {{user}}: {} \\; -exec chmod 600 {} \\;"
],
}
}
}

0 comments on commit 76a4a94

Please sign in to comment.