mirror of https://github.com/Icinga/icinga2.git
Update sysconfig read
This commit is contained in:
parent
2b5ea38217
commit
44fae88d43
|
@ -3,9 +3,13 @@
|
||||||
# This script prepares directories and files needed for running Icinga2
|
# This script prepares directories and files needed for running Icinga2
|
||||||
#
|
#
|
||||||
|
|
||||||
# With sysvinit we need to pass the environment this way. Or do we?
|
# Load sysconf on systems where the initsystem does not pass the environment
|
||||||
if [ "$1" != "" ]; then
|
if [ "$1" != "" ]; then
|
||||||
source "$1"
|
if [ -r "$1" ]; then
|
||||||
|
source "$1"
|
||||||
|
else
|
||||||
|
echo "Unable to read sysconf from '$1'. Exiting." && exit 6
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set defaults, to overwrite see "@ICINGA2_SYSCONFIGFILE@"
|
# Set defaults, to overwrite see "@ICINGA2_SYSCONFIGFILE@"
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# With sysvinit we need to pass the environment this way. Or do we?
|
# Load sysconf on systems where the initsystem does not pass the environment
|
||||||
if [ "$1" != "" ]; then
|
if [ "$1" != "" ]; then
|
||||||
source "$1"
|
if [ -r "$1" ]; then
|
||||||
|
source "$1"
|
||||||
|
else
|
||||||
|
echo "Unable to read sysconf from '$1'. Exiting." && exit 6
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set defaults, to overwrite see "@ICINGA2_SYSCONFIGFILE@"
|
# Set defaults, to overwrite see "@ICINGA2_SYSCONFIGFILE@"
|
||||||
|
|
Loading…
Reference in New Issue