File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed
packaging/common/script-templates Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -21,29 +21,12 @@ is_nova()
21
21
test " $PROJECT_TYPE " = " cfengine-nova" || test " $PROJECT_TYPE " = " cfengine-nova-hub"
22
22
}
23
23
24
- INSTLOG=/var/log/CFEngineHub-Install.log
25
- mkdir -p " $( dirname " $INSTLOG " ) "
26
- CONSOLE=7
27
- # Redirect most output to log file, but keep console around for custom output.
28
- case " $SCRIPT_TYPE " in
29
- pre* )
30
- eval " exec $CONSOLE >&1 > $INSTLOG 2>&1"
31
- ;;
32
- * )
33
- eval " exec $CONSOLE >&1 >> $INSTLOG 2>&1"
34
- ;;
35
- esac
36
24
echo " $SCRIPT_TYPE :"
37
25
38
26
# Output directly to console, bypassing log.
39
27
cf_console ()
40
28
{
41
- # Use subshell to prevent "set +x" from leaking out into the rest of the
42
- # execution.
43
- (
44
- set +x
45
- " $@ " 1>& $CONSOLE 2>& $CONSOLE
46
- )
29
+ " $@ "
47
30
}
48
31
49
32
set -x
You can’t perform that action at this time.
0 commit comments