Skip to content

Commit fb3bab3

Browse files
author
Morgan Rhodes
committed
(PDB-3832) Update permissions for ini files to match puppetlabs-puppetdb module
1 parent a643bfe commit fb3bab3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

resources/ext/ezbake.conf

+9-2
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,18 @@ ezbake: {
3838
" fi",
3939
" /sbin/service puppetdb start > /dev/null 2>&1",
4040
" fi)"
41-
]
41+
],
42+
postinst-install: [
43+
"find /etc/puppetlabs/puppetdb/conf.d/ -type f -name '*.ini' -exec chown {{user}}: {} \\; -exec chmod 600 {} \\; ||:"
44+
],
4245
},
4346
debian: { dependencies: ["puppet-agent (>= 5.99.0)"],
4447
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"],
4548
postinst: ["/opt/puppetlabs/server/bin/puppetdb config-migration",
46-
"/opt/puppetlabs/server/bin/puppetdb ssl-setup"] }
49+
"/opt/puppetlabs/server/bin/puppetdb ssl-setup"],
50+
postinst-install: [
51+
"find /etc/puppetlabs/puppetdb/conf.d/ -type f -name '*.ini' -exec chown {{user}}: {} \\; -exec chmod 600 {} \\;"
52+
],
53+
}
4754
}
4855
}

0 commit comments

Comments
 (0)