From 038d7c7cfdaba8574be72dbd824cfbe6fbbcc28b Mon Sep 17 00:00:00 2001
From: anima
Date: Mon, 3 Feb 2025 16:08:53 +0100
Subject: [PATCH] add aliase for easy config handling
---
Dockerfile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Dockerfile b/Dockerfile
index a4c26da..f7d8c14 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -37,6 +37,10 @@ RUN ["bash", "-exo", "pipefail", "-c", "\
ln -vs /data/var/icinga2 /var/lib/icinga2 ; \
ln -vs /data/plugins /usr/lib/nagios/plugins "]
+RUN ["bash", "-exo", "pipefail", "-c", "\
+ echo alias icinga2reload=\"'/usr/lib/icinga2/safe-reload /etc/default/icinga2'\" >> /root/.bashrc ; \
+ echo alias icinga2checkconfig=\"'icinga2 daemon -C -X'\" >> /root/.bashrc "]
+
COPY init.sh /root/init.sh
EXPOSE 5665