From 48481ab226ba3415f9efd93378717f4c1f81cccb Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 11 Jul 2014 12:04:13 +0200 Subject: [pvs2] Fix code style of pvs start script --- .../opt/openslx/vmchooser/sessionstart.d/50-PVSclient | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'remote/modules/pvs2/data') diff --git a/remote/modules/pvs2/data/opt/openslx/vmchooser/sessionstart.d/50-PVSclient b/remote/modules/pvs2/data/opt/openslx/vmchooser/sessionstart.d/50-PVSclient index 54ec439e..75ba0709 100644 --- a/remote/modules/pvs2/data/opt/openslx/vmchooser/sessionstart.d/50-PVSclient +++ b/remote/modules/pvs2/data/opt/openslx/vmchooser/sessionstart.d/50-PVSclient @@ -1,12 +1,11 @@ -#!/bin/bash +#!/bin/ash # If the ENV var PVS has been set by vmchooser start pvsclient -if [ -n $PVS ]; then - if [ $PVS = "true" ]; then -# if [ -n $PVS_SESSIONID ]; then -# pvsclient --session-id $PVS_SESSIONID -# else - pvsclient & -# fi - fi +if [ -n "$PVS" -a "$PVS" = "true" ]; then + if [ -n "$PVS_SESSIONID" ]; then + pvsclient --session-id "$PVS_SESSIONID" & + else + pvsclient & + fi fi + -- cgit v1.2.3-55-g7522