mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
fix incorrect /data
ownership
This commit is contained in:
parent
1fbcbae02d
commit
eca72d2c3d
@ -167,6 +167,10 @@ RUN for dir in /etc/icinga2 /var/cache/icinga2 /var/lib/icinga2 /var/log/icinga2
|
||||
ln -vs "/data$dir" "$dir"; \
|
||||
done
|
||||
|
||||
# The below prepare-dirs script will not fix any permissions issues for the actuall /var/lib/icinga2 or
|
||||
# /var/etc/icinga2 directories, so we need to set the correct ownership for the /data directory recursively.
|
||||
RUN chown -R icinga:icinga /data
|
||||
|
||||
# Run the prepare-dirs script to create non-existing directories and set the correct permissions for them.
|
||||
# It's invoked in the same way as in the systemd unit file in a Debian package, so this will ensure that
|
||||
# all the necessary directories are created with the correct permissions and ownership.
|
||||
|
Loading…
x
Reference in New Issue
Block a user