mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +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,12 +4,12 @@
|
||||||
# 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
|
||||||
|
|
||||||
OS=`grep ^ID= /etc/*elease|cut -d= -f2`
|
OS=`grep ^ID= /etc/*elease | cut -d= -f2`
|
||||||
OS=${OS//\"/}
|
OS=${OS//\"/}
|
||||||
if [ -f /etc/rpi-issue ]; then
|
if [ -f /etc/rpi-issue ]; then
|
||||||
OS="raspbian"
|
OS="raspbian"
|
||||||
|
@ -50,12 +50,10 @@ 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
|
||||||
|
@ -70,14 +68,14 @@ else
|
||||||
RPI_VERSION="none"
|
RPI_VERSION="none"
|
||||||
fi
|
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…
Reference in a new issue