-#!/bin/sh
+#!/bin/sh -exu
#
# Copyright (C) 2015 - Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
#
-#!/bin/sh
+#!/bin/sh -exu
#
# Copyright (C) 2015 - Michael Jeanson <mjeanson@efficios.com>
#
-#!/bin/sh
+#!/bin/sh -exu
#
# Copyright (C) 2015 - Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
#
-#!/bin/sh
+#!/bin/sh -exu
#
# Copyright (C) 2015 - Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
# Michael Jeanson <mjeanson@efficios.com>
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Exit with error when using an undefined variable
-set -u
-
#Check if ccache is present
#if [ -d /usr/lib/ccache ]; then
# echo "Using CCACHE"
-#!/bin/sh
+#!/bin/sh -exu
#
# Copyright (C) 2015 - Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
#
-#!/bin/sh
+#!/bin/sh -exu
#
# Copyright (C) 2015 - Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
#
-#!/bin/sh
+#!/bin/sh -exu
#
# Copyright (C) 2015 - Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
# Michael Jeanson <mjeanson@efficios.com>
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Exit with error when using an undefined variable
-set -u
-
# Use all CPU cores
NPROC=$(nproc)
-#/bin/sh
+#/bin/sh -exu
yum -y install wget
-#!/bin/sh
+#!/bin/sh -exu
yum install -y kmod-lttng-modules lttng-tools babeltrace
-#/bin/sh
+#/bin/sh -exu
zypper --non-interactive addrepo https://packages.efficios.com/repo.files/EfficiOS-SLE12-x86-64.repo
-#!/bin/sh
+#!/bin/sh -exu
zypper --non-interactive install lttng-modules-kmp-default lttng-tools babeltrace
-#!/bin/sh
+#!/bin/sh -exu
systemctl enable lttng-relayd
-#!/bin/sh
+#!/bin/sh -exu
systemctl enable lttng-sessiond
-#!/bin/sh
+#!/bin/sh -exu
lttng create
lttng enable-event -a -k