mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
== and = were interspersed. Let's converge on one. Presumably ==
This commit is contained in:
parent
1227bd017b
commit
6d985ac30a
1 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ if [ ! -f $PLAYBOOK ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $OS = "raspbian" ]; then
|
if [ $OS == "raspbian" ]; then
|
||||||
echo "Found Raspbian"
|
echo "Found Raspbian"
|
||||||
ABORT=`uname -a | grep $OLD_RPI_KERN | wc -l`
|
ABORT=`uname -a | grep $OLD_RPI_KERN | wc -l`
|
||||||
if [ "$ABORT" == 1 ]; then
|
if [ "$ABORT" == 1 ]; then
|
||||||
|
@ -44,13 +44,13 @@ if [ ! -f /etc/iiab/iiab.env ]; then
|
||||||
# ./scripts/ansible # needs discussion
|
# ./scripts/ansible # needs discussion
|
||||||
else
|
else
|
||||||
OLD=`grep XSCE /etc/iiab/iiab.env | wc -l`
|
OLD=`grep XSCE /etc/iiab/iiab.env | wc -l`
|
||||||
if [ "$OLD" != 0 ] || [ "$1" = "--reinstall" ]; then
|
if [ "$OLD" != 0 ] || [ "$1" == "--reinstall" ]; then
|
||||||
echo "Found old XSCE install - re-installing from scratch"
|
echo "Found old XSCE install - re-installing from scratch"
|
||||||
rm /etc/iiab/iiab.env
|
rm /etc/iiab/iiab.env
|
||||||
# check ansible version here and force ansible upgrade if needed
|
# check ansible version here and force ansible upgrade if needed
|
||||||
else
|
else
|
||||||
source /etc/iiab/iiab.env
|
source /etc/iiab/iiab.env
|
||||||
if [ "$1" = "--debug" ]; then
|
if [ "$1" == "--debug" ]; then
|
||||||
echo "Entering debug mode"
|
echo "Entering debug mode"
|
||||||
sed -i -e 's/^STAGE=.*/STAGE=2/' /etc/iiab/iiab.env
|
sed -i -e 's/^STAGE=.*/STAGE=2/' /etc/iiab/iiab.env
|
||||||
elif [ ! $STAGE == 9 ]; then
|
elif [ ! $STAGE == 9 ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue