File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -224,7 +224,11 @@ RUN sed -i 's/^ *USER="puppet"/USER=""/' /etc/default/puppetserver
224224# `puppetserver setup` forces symlinking the "old" cadir to the "new" one for puppet 6 compatibility
225225# reasons. this won't work because after creating a link ruby tries to call chown
226226RUN sed -i '/Puppetserver::Ca::Utils::Config\.symlink_to_old_cadir/ s/^/# /' \
227- /usr/lib/ruby/gems/3.4.0/gems/openvoxserver-ca-3.0.0/lib/puppetserver/ca/action/setup.rb
227+ /usr/lib/ruby/gems/*/gems/openvoxserver-ca-*/lib/puppetserver/ca/action/setup.rb
228+ # `FileUtils.chown` calls fail in rootless containers because the process
229+ # lacks CAP_CHOWN. The ownership is already handled by the g=u / SGID pattern above.
230+ RUN sed -i 's/FileUtils\.chown/# FileUtils.chown/' \
231+ /usr/lib/ruby/gems/*/gems/openvoxserver-ca-*/lib/puppetserver/ca/utils/file_system.rb
228232
229233USER puppet:0
230234
You can’t perform that action at this time.
0 commit comments