1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

Update iiab-install

This commit is contained in:
A Holt 2018-07-19 17:20:05 -04:00 committed by GitHub
parent d28883dab8
commit da99df667a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,16 +118,16 @@ if [ "$STAGE" -lt 2 ] && [ "$1" == "--debug" ]; then
echo -e "\n'--debug' *ignored* as STAGE (counter) < 2."
fi
# If vars/local_vars.yml is missing, put a default file in place.
if [ ! -f ./vars/local_vars.yml ]; then
# If /etc/iiab/local_vars.yml is missing, put a default file in place.
if [ ! -f /etc/iiab/local_vars.yml ]; then
case $OS in
OLPC | fedora)
cp ./vars/local_vars_olpc.yml ./vars/local_vars.yml
echo -e "\nvars/local_vars.yml created from local_vars_olpc.yml defaults."
cp ./vars/local_vars_olpc.yml /etc/iiab/local_vars.yml
echo -e "\n/etc/iiab/local_vars.yml created from local_vars_olpc.yml defaults."
;;
centos | debian | ubuntu | raspbian)
cp ./vars/local_vars_medium.yml ./vars/local_vars.yml
echo -e "\nvars/local_vars.yml created from local_vars_medium.yml defaults."
cp ./vars/local_vars_medium.yml /etc/iiab/local_vars.yml
echo -e "\/etc/iiab/local_vars.yml created from local_vars_medium.yml defaults."
echo "See MIN/MEDIUM/BIG options @ http://wiki.iiab.io/local_vars.yml"
;;
*)