diff --git a/ansible/files/bootstrap/telemetry.sh b/ansible/files/bootstrap/telemetry.sh index 731adbf..f7682f1 100755 --- a/ansible/files/bootstrap/telemetry.sh +++ b/ansible/files/bootstrap/telemetry.sh @@ -178,16 +178,16 @@ if [ ! -z $TIMEOUT ]; then sudo shutdown -h +$TIMEOUT& fi -# Continue only if master node -if [ "$IS_MASTER" = false ]; then - exit -fi - # Setup Spark logging sudo mkdir -p /mnt/var/log/spark sudo chmod a+rw /mnt/var/log/spark touch /mnt/var/log/spark/spark.log +# Continue only if master node +if [ "$IS_MASTER" = false ]; then + exit +fi + # Setup R environment cd /mnt wget -nc https://mran.microsoft.com/install/RRO-3.2.1-el6.x86_64.tar.gz