Browse Source

Think, don't talk

Alois Mahdal 10 years ago
parent
commit
92b383d082
1 changed files with 12 additions and 12 deletions
  1. 12
    12
      bin/eemk.in

+ 12
- 12
bin/eemk.in View File

@@ -33,13 +33,13 @@ case "$1" in
33 33
     ## ------ ##
34 34
 
35 35
     abrtbz)
36
-        echo "Updating abrt to internal version"
36
+        think "Updating abrt to internal version"
37 37
         save_repo_for abrtbz
38 38
         yum_update "abrt"
39 39
         ;;
40 40
 
41 41
     sl0)
42
-        echo "Turning off SELinux"
42
+        think "Turning off SELinux"
43 43
         setenforce 0
44 44
         sed -i~ -e 's/^SELINUX=.*/SELINUX=permissive/' /etc/selinux/config
45 45
         ;;
@@ -54,7 +54,7 @@ case "$1" in
54 54
     olbrc)
55 55
         LMI_CIMOM_PORT=5989
56 56
         mkdir -p "$(dirname $ENVIRON_SCRIPT)"
57
-        echo "Adding ol environment script $ENVIRON_SCRIPT to .bashrc"
57
+        think "Adding ol environment script $ENVIRON_SCRIPT to .bashrc"
58 58
         {
59 59
             # warning: only echo if not login shell or rsync will freak out
60 60
             echo "shopt -q login_shell && echo setting up ol environment variables"
@@ -75,14 +75,14 @@ case "$1" in
75 75
 
76 76
     olconfig)
77 77
         $0 sl0
78
-        echo "Bypassing SSL verification"
78
+        think "Bypassing SSL verification"
79 79
         echo "127.0.0.1 $(hostname)" >> /etc/hosts
80 80
         service tog-pegasus start      # to generate server.pem
81 81
         service tog-pegasus stop
82 82
         cp "/etc/Pegasus/server.pem" \
83 83
            "/etc/pki/ca-trust/source/anchors/remote-server.pem"
84 84
         update-ca-trust
85
-        echo "Setting pegasus password"
85
+        think "Setting pegasus password"
86 86
         echo "pegasus:blank" | chpasswd
87 87
         $0 olbrc
88 88
         ;;
@@ -94,7 +94,7 @@ case "$1" in
94 94
         ;;
95 95
 
96 96
     olcs)
97
-        echo "Starting a simple cimserver ($(comment_cimserver))"
97
+        think "Starting a simple cimserver ($(comment_cimserver))"
98 98
         start_cimserver
99 99
         ;;
100 100
 
@@ -113,9 +113,9 @@ case "$1" in
113 113
 
114 114
     OL)
115 115
         save_repo_for openlmi-scripts
116
-        echo "Installing OpenLMI software"
116
+        think "Installing OpenLMI software"
117 117
         iniread -s mk.requires.sut mk-ol.ini | any_install
118
-        echo "Installing testing tools"
118
+        think "Installing testing tools"
119 119
         iniread -s mk.requires.test mk-ol.ini | any_install
120 120
         $0 olconfig
121 121
         ;;
@@ -142,7 +142,7 @@ case "$1" in
142 142
 
143 143
     rpmso)
144 144
         path=rpms/old/`arch`
145
-        echo "Deploying old RPMs from $path"
145
+        think "Deploying old RPMs from $path"
146 146
         guess_pkgnames $path | yum_preerase
147 147
         yum_install $path/*
148 148
         guess_pkgnames $path | installed_versions
@@ -150,7 +150,7 @@ case "$1" in
150 150
 
151 151
     rpmsn)
152 152
         path=rpms/new/`arch`
153
-        echo "Deploying new RPMs from $path"
153
+        think "Deploying new RPMs from $path"
154 154
         guess_pkgnames $path | yum_preerase
155 155
         yum_install $path/*
156 156
         guess_pkgnames $path | installed_versions
@@ -160,9 +160,9 @@ case "$1" in
160 160
         save_repo_for beakerlib
161 161
         save_repo_for rhpkg
162 162
         save_repo_for beakerlib-redhat
163
-        echo "Installing tested software"
163
+        think "Installing tested software"
164 164
         iniread -s mk.requires.sut mk-bk.ini | any_install
165
-        echo "Installing testing tools"
165
+        think "Installing testing tools"
166 166
         iniread -s mk.requires.test mk-bk.ini | any_install
167 167
         ;;
168 168