diff --git a/confluent_osdeploy/el7/profiles/default/scripts/firstboot.sh b/confluent_osdeploy/el7/profiles/default/scripts/firstboot.sh index b8c93cc3..9b754056 100644 --- a/confluent_osdeploy/el7/profiles/default/scripts/firstboot.sh +++ b/confluent_osdeploy/el7/profiles/default/scripts/firstboot.sh @@ -12,6 +12,7 @@ profile=$(grep ^profile: /etc/confluent/confluent.deploycfg|awk '{print $2}') export nodename mgr profile . /etc/confluent/functions exec >> /var/log/confluent/confluent-firstboot.log +exec 2>> /var/log/confluent/confluent-firstboot.log tail -f /var/log/confluent/confluent-firstboot.log > /dev/console & logshowpid=$! @@ -32,4 +33,4 @@ curl -X POST -d 'status: complete' -H "CONFLUENT_NODENAME: $nodename" -H "CONFLU systemctl disable firstboot rm /etc/systemd/system/firstboot.service rm /etc/confluent/firstboot.ran -kill $logshowpid \ No newline at end of file +kill $logshowpid diff --git a/confluent_osdeploy/el7/profiles/default/scripts/post.sh b/confluent_osdeploy/el7/profiles/default/scripts/post.sh index 70228722..f6fa2d07 100644 --- a/confluent_osdeploy/el7/profiles/default/scripts/post.sh +++ b/confluent_osdeploy/el7/profiles/default/scripts/post.sh @@ -1,6 +1,7 @@ #!/bin/sh mkdir -p /var/log/confluent exec >> /var/log/confluent/confluent-post.log +exec 2>> /var/log/confluent/confluent-post.log tail -f /var/log/confluent/confluent-post.log > /dev/tty & logshowpid=$! nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}') diff --git a/confluent_osdeploy/el7/profiles/default/scripts/pre.sh b/confluent_osdeploy/el7/profiles/default/scripts/pre.sh index df6ad9c8..63922ae8 100644 --- a/confluent_osdeploy/el7/profiles/default/scripts/pre.sh +++ b/confluent_osdeploy/el7/profiles/default/scripts/pre.sh @@ -12,6 +12,7 @@ if [ -f "/run/install/cmdline.d/01-autocons.conf" ]; then TMUX= tmux a <> $consoledev >&0 2>&1 & fi exec >> /tmp/confluent-pre.log +exec 2>> /tmp/confluent-pre.log tail -f /tmp/confluent-pre.log > /dev/tty & logshowpid=$! nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}') diff --git a/confluent_osdeploy/el8/profiles/default/scripts/firstboot.sh b/confluent_osdeploy/el8/profiles/default/scripts/firstboot.sh index b8c93cc3..9b754056 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/firstboot.sh +++ b/confluent_osdeploy/el8/profiles/default/scripts/firstboot.sh @@ -12,6 +12,7 @@ profile=$(grep ^profile: /etc/confluent/confluent.deploycfg|awk '{print $2}') export nodename mgr profile . /etc/confluent/functions exec >> /var/log/confluent/confluent-firstboot.log +exec 2>> /var/log/confluent/confluent-firstboot.log tail -f /var/log/confluent/confluent-firstboot.log > /dev/console & logshowpid=$! @@ -32,4 +33,4 @@ curl -X POST -d 'status: complete' -H "CONFLUENT_NODENAME: $nodename" -H "CONFLU systemctl disable firstboot rm /etc/systemd/system/firstboot.service rm /etc/confluent/firstboot.ran -kill $logshowpid \ No newline at end of file +kill $logshowpid diff --git a/confluent_osdeploy/el8/profiles/default/scripts/post.sh b/confluent_osdeploy/el8/profiles/default/scripts/post.sh index 70228722..f6fa2d07 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/post.sh +++ b/confluent_osdeploy/el8/profiles/default/scripts/post.sh @@ -1,6 +1,7 @@ #!/bin/sh mkdir -p /var/log/confluent exec >> /var/log/confluent/confluent-post.log +exec 2>> /var/log/confluent/confluent-post.log tail -f /var/log/confluent/confluent-post.log > /dev/tty & logshowpid=$! nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}') diff --git a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh index df6ad9c8..63922ae8 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh +++ b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh @@ -12,6 +12,7 @@ if [ -f "/run/install/cmdline.d/01-autocons.conf" ]; then TMUX= tmux a <> $consoledev >&0 2>&1 & fi exec >> /tmp/confluent-pre.log +exec 2>> /tmp/confluent-pre.log tail -f /tmp/confluent-pre.log > /dev/tty & logshowpid=$! nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}')