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()
2121 test " $PROJECT_TYPE " = " cfengine-nova" || test " $PROJECT_TYPE " = " cfengine-nova-hub"
2222}
2323
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
3624echo " $SCRIPT_TYPE :"
3725
3826# Output directly to console, bypassing log.
3927cf_console ()
4028{
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+ " $@ "
4730}
4831
4932set -x
You can’t perform that action at this time.
0 commit comments