mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update local_facts.fact
This commit is contained in:
parent
45f345c8ff
commit
c533cf7e77
1 changed files with 8 additions and 10 deletions
|
@ -4,7 +4,7 @@
|
||||||
# interruptions return last stage number recorded (1-9)
|
# interruptions return last stage number recorded (1-9)
|
||||||
if [ -f /etc/iiab/iiab.env ]; then
|
if [ -f /etc/iiab/iiab.env ]; then
|
||||||
source /etc/iiab/iiab.env
|
source /etc/iiab/iiab.env
|
||||||
STAGE=$STAGE
|
STAGE=$STAGE # What does this line do?
|
||||||
else
|
else
|
||||||
STAGE=0
|
STAGE=0
|
||||||
fi
|
fi
|
||||||
|
@ -50,13 +50,11 @@ COMMIT=`git rev-parse --verify HEAD`
|
||||||
|
|
||||||
if [ -d /usr/lib64/php ]; then
|
if [ -d /usr/lib64/php ]; then
|
||||||
PHPLIB_DIR=/usr/lib64/php
|
PHPLIB_DIR=/usr/lib64/php
|
||||||
else
|
elif [ -d /usr/lib/php5 ]; then
|
||||||
if [ -d /usr/lib/php5 ]; then
|
|
||||||
PHPLIB_DIR=/usr/lib/php5
|
PHPLIB_DIR=/usr/lib/php5
|
||||||
else
|
else
|
||||||
PHPLIB_DIR=/usr/lib/php
|
PHPLIB_DIR=/usr/lib/php
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f /proc/device-tree/mfg-data/MN ]; then
|
if [ -f /proc/device-tree/mfg-data/MN ]; then
|
||||||
XO_VERSION=`cat /proc/device-tree/mfg-data/MN`
|
XO_VERSION=`cat /proc/device-tree/mfg-data/MN`
|
||||||
|
@ -72,12 +70,12 @@ fi
|
||||||
|
|
||||||
ANSIBLE_VERSION=$(ansible --version | head -n 1 | cut -f 2 -d " ")
|
ANSIBLE_VERSION=$(ansible --version | head -n 1 | cut -f 2 -d " ")
|
||||||
|
|
||||||
if [ ! x$DHCPCD_PATH = x ]; then
|
if [[ $DHCPCD_PATH != "" ]]; then
|
||||||
DHCPCD=`systemctl is-enabled dhcpcd`
|
DHCPCD=`systemctl is-enabled dhcpcd`
|
||||||
fi
|
fi
|
||||||
# the check is debian family only is_redhat would use NetworkManager as the
|
# the check is debian family only is_redhat would use NetworkManager as the
|
||||||
# service name.
|
# service name.
|
||||||
if [ ! x$NM_PATH = x ]; then
|
if [[ $NM_PATH != "" ]]; then
|
||||||
NM=`systemctl is-enabled network-manager`
|
NM=`systemctl is-enabled network-manager`
|
||||||
fi
|
fi
|
||||||
SYSD_NETD=`systemctl is-enabled systemd-networkd`
|
SYSD_NETD=`systemctl is-enabled systemd-networkd`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue