43b70ce224
Since we are using bash syntax in some of the element fragments, we should make sure we use bash for all of them, so that things don't break on systems where /bin/sh != /bin/bash. Change-Id: If2f043c57aa4e1492b7f9839213ef6123f683612
17 lines
316 B
Bash
Executable file
17 lines
316 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ "i386" = "$ARCH" ]; then
|
|
basearch=i386
|
|
arch=i686
|
|
elif [ "amd64" = "$ARCH" ]; then
|
|
basearch=x86_64
|
|
arch=x86_64
|
|
else
|
|
echo "********************"
|
|
echo "Unknown arch '$ARCH'"
|
|
echo "********************"
|
|
exit 1
|
|
fi
|
|
|
|
echo $basearch > /etc/yum/vars/basearch
|
|
echo $arch > /etc/yum/vars/arch
|