summaryrefslogtreecommitdiffstats
path: root/system/icingaweb2/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'system/icingaweb2/doinst.sh')
-rw-r--r--system/icingaweb2/doinst.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/icingaweb2/doinst.sh b/system/icingaweb2/doinst.sh
index 0478b817bf..5c6c131feb 100644
--- a/system/icingaweb2/doinst.sh
+++ b/system/icingaweb2/doinst.sh
@@ -13,5 +13,9 @@ config() {
config etc/httpd/extra/icingaweb2.conf.new
+[ ! -f etc/icingaweb2/setup.token ] \
+ && icingacli setup token create \
+ && chown apache:apache etc/icingaweb2/setup.token
+
find etc/icingaweb2 -type f -name '*.new' \
| while read new ; do config $new ; done