File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,10 @@ RUN for dir in /etc/icinga2 /var/cache/icinga2 /var/lib/icinga2 /var/log/icinga2
167
167
ln -vs "/data$dir" "$dir" ; \
168
168
done
169
169
170
+ # The below prepare-dirs script will not fix any permissions issues for the actuall /var/lib/icinga2 or
171
+ # /var/etc/icinga2 directories, so we need to set the correct ownership for the /data directory recursively.
172
+ RUN chown -R icinga:icinga /data
173
+
170
174
# Run the prepare-dirs script to create non-existing directories and set the correct permissions for them.
171
175
# It's invoked in the same way as in the systemd unit file in a Debian package, so this will ensure that
172
176
# all the necessary directories are created with the correct permissions and ownership.
You can’t perform that action at this time.
0 commit comments