1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

use case for os.localvars

This commit is contained in:
Jerry Vonau 2017-07-04 21:31:19 -05:00 committed by georgejhunt
parent d66b56824d
commit 132813c4be

View file

@ -10,11 +10,30 @@ fi
if [ ! -f ./vars/local_vars.yml ]; then
OS=`grep ^ID= /etc/*release|cut -d= -f2`
OS=${OS//\"/}
if [ "$OS" = "centos" ]; then
case $OS in
OLPC)
cp ./vars/olpc.localvars ./vars/local_vars.yml
fedora)
cp ./vars/olpc.localvars ./vars/local_vars.yml
;;
centos)
cp ./vars/centos.localvars ./vars/local_vars.yml
else
;;
debian)
cp ./vars/debian.localvars ./vars/local_vars.yml
fi
;;
ubuntu)
cp ./vars/debian.localvars ./vars/local_vars.yml
;;
raspbian)
cp ./vars/debian.localvars ./vars/local_vars.yml
;;
*)
echo "Unknown OS -- no matching os.localvars -- exiting now..."
exit 0
;;
esac
fi
if [ -f /etc/iiab/iiab.env ]
@ -27,7 +46,7 @@ fi
if [ ! -f iiab.yml ]
then
echo "XSCE Playbook not found."
echo "IIAB Playbook not found."
echo "Please run this command from the top level of the git repo."
echo "Exiting."
exit