1
0
Fork 0
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:
A Holt 2020-10-19 03:01:57 -07:00 committed by GitHub
parent 45f345c8ff
commit c533cf7e77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@
# interruptions return last stage number recorded (1-9)
if [ -f /etc/iiab/iiab.env ]; then
source /etc/iiab/iiab.env
STAGE=$STAGE
STAGE=$STAGE # What does this line do?
else
STAGE=0
fi
@ -50,13 +50,11 @@ COMMIT=`git rev-parse --verify HEAD`
if [ -d /usr/lib64/php ]; then
PHPLIB_DIR=/usr/lib64/php
else
if [ -d /usr/lib/php5 ]; then
elif [ -d /usr/lib/php5 ]; then
PHPLIB_DIR=/usr/lib/php5
else
PHPLIB_DIR=/usr/lib/php
fi
fi
if [ -f /proc/device-tree/mfg-data/MN ]; then
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 " ")
if [ ! x$DHCPCD_PATH = x ]; then
if [[ $DHCPCD_PATH != "" ]]; then
DHCPCD=`systemctl is-enabled dhcpcd`
fi
# the check is debian family only is_redhat would use NetworkManager as the
# service name.
if [ ! x$NM_PATH = x ]; then
if [[ $NM_PATH != "" ]]; then
NM=`systemctl is-enabled network-manager`
fi
SYSD_NETD=`systemctl is-enabled systemd-networkd`