systems: Fix top level build_base_machine script to use ID 65/11465/6
authorChristian Trautman <ctrautma@redhat.com>
Mon, 21 Mar 2016 16:15:23 +0000 (12:15 -0400)
committerMaryam Tahhan <maryam.tahhan@intel.com>
Wed, 30 Mar 2016 14:50:57 +0000 (14:50 +0000)
Modified top level build_base_machine.sh script to use ID
instead of Name from os-release file. Renamed folders to
adapt to this change.

* Modified ID variable assignment from echo to straight assignment.

JIRA: VSPERF-257

Change-Id: I22a7d5a1f191418cbc8fc9fd7d85b013e51b49bc
Signed-off-by: Christian Trautman <ctrautma@redhat.com>
14 files changed:
systems/build_base_machine.sh
systems/centos/build_base_machine.sh [moved from systems/CentOS/build_base_machine.sh with 100% similarity]
systems/centos/prepare_python_env.sh [moved from systems/CentOS/prepare_python_env.sh with 100% similarity]
systems/fedora/20/build_base_machine.sh [moved from systems/Fedora/20/build_base_machine.sh with 100% similarity]
systems/fedora/20/prepare_python_env.sh [moved from systems/Fedora/20/prepare_python_env.sh with 100% similarity]
systems/fedora/21/build_base_machine.sh [moved from systems/Fedora/21/build_base_machine.sh with 100% similarity]
systems/fedora/21/prepare_python_env.sh [moved from systems/Fedora/21/prepare_python_env.sh with 100% similarity]
systems/fedora/22/build_base_machine.sh [moved from systems/Fedora/22/build_base_machine.sh with 100% similarity]
systems/fedora/22/prepare_python_env.sh [moved from systems/Fedora/22/prepare_python_env.sh with 100% similarity]
systems/rhel/7.2/build_base_machine.sh [moved from systems/Red/7.2/build_base_machine.sh with 100% similarity]
systems/rhel/7.2/prepare_python_env.sh [moved from systems/Red/7.2/prepare_python_env.sh with 100% similarity]
systems/ubuntu/14.04/build_base_machine.sh [moved from systems/Ubuntu/14.04/build_base_machine.sh with 100% similarity]
systems/ubuntu/14.04/prepare_python_env.sh [moved from systems/Ubuntu/14.04/prepare_python_env.sh with 100% similarity]
systems/ubuntu/build_base_machine.sh [moved from systems/Ubuntu/build_base_machine.sh with 100% similarity]

index c64f7bb..59712b9 100755 (executable)
@@ -38,7 +38,7 @@ function die() {
 . /etc/os-release
 
 # Get OS name (the First word from $NAME in /etc/os-release)
-OS_NAME=`echo "$NAME" | cut -d ' ' -f1`
+OS_NAME="$ID"
 
 # check if root
 if [ "$UID" -ne "$ROOT_UID" ]