Commit 103626e 1 parent 93181cc commit 103626e Copy full SHA for 103626e
File tree 1 file changed +10
-6
lines changed
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 3
3
4
4
[[ $DEBUG ]] && export DEBUG
5
5
6
- # Figure out what OS we are running on.
6
+ (( $UID == 0 )) || {
7
+ echo " You must run this script as root!"
8
+ exit 1
9
+ }
7
10
8
- # Install prerequisites needed to run the dev tool
9
- # Also adds repos that let us fetch nginx and the Chef bits we need.
11
+ # Figure out what OS we are running on.
10
12
11
- export ISO_LIBRARY=/opt/dell/isos
12
13
if [[ -f /etc/centos-release ]] && grep -q ' 6\.2' /etc/centos-release; then
13
14
OUR_OS=centos-6.2
14
15
elif [[ -f /etc/redhat-release ]] && grep -q ' 6\.2' /etc/redhat-release; then
@@ -25,7 +26,10 @@ if [[ ! $OUR_OS ]]; then
25
26
exit 1
26
27
fi
27
28
28
- sudo ./install-prereqs $OUR_OS || exit 1
29
+ # Install prerequisites needed to run the dev tool
30
+ # Also adds repos that let us fetch nginx and the Chef bits we need.
31
+
32
+ ./install-prereqs $OUR_OS || exit 1
29
33
30
34
if [[ ! -f /tftpboot/discovery/initrd0.img ]]; then
31
35
sudo mkdir -p /tftpboot/discovery
38
42
# Initialize ourselves and pull down the barclamps we need.
39
43
while ! ./dev switch; do sleep 5; done
40
44
41
- sudo ./install-crowbar $OUR_OS || exit 1
45
+ ./install-crowbar $OUR_OS || exit 1
You can’t perform that action at this time.
0 commit comments