#****
proc $MODULE.shellcmd { node } {
- set ret [nexec whereis -b bash]
- # OpenVZ, $ret ce biti bash: /bin/bash /etc/bash.bashrc
- # duljina je uvijek 3
-
- if { [llength $ret] == 3 } {
- return [lindex $ret 1]
- } else {
- set ret [nexec whereis -b tcsh]
- if { [llength $ret] == 2 } {
- return [lindex $ret 1]
- } else {
- return "/bin/sh"
- }
- }
+ # OpenVZ template sami podesavamo, pa ovo mozemo i hardkodirati
+ # da ne pokrecemo whereis nonstop
+ return "/bin/sh"
}
#****f* host.tcl/host.instantiate
#****
proc $MODULE.shellcmd { node } {
- set ret [nexec whereis -b bash]
- # OpenVZ, $ret ce biti bash: /bin/bash /etc/bash.bashrc
- # duljina je uvijek 3
-
- if { [llength $ret] == 3 } {
- return [lindex $ret 1]
- } else {
- set ret [nexec whereis -b tcsh]
- if { [llength $ret] == 2 } {
- return [lindex $ret 1]
- } else {
- return "/bin/sh"
- }
- }
+ # OpenVZ template sami podesavamo, pa ovo mozemo i hardkodirati
+ # da ne pokrecemo whereis nonstop
+ return "/bin/sh"
}
#****f* pc.tcl/pc.instantiate