summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2014-07-11 12:04:13 +0200
committerSimon Rettberg2014-07-11 12:04:13 +0200
commit48481ab226ba3415f9efd93378717f4c1f81cccb (patch)
treecd92daf4cdb22a44420af67d3d9eab86ee8ff6fa
parentMerge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff)
downloadtm-scripts-48481ab226ba3415f9efd93378717f4c1f81cccb.tar.gz
tm-scripts-48481ab226ba3415f9efd93378717f4c1f81cccb.tar.xz
tm-scripts-48481ab226ba3415f9efd93378717f4c1f81cccb.zip
[pvs2] Fix code style of pvs start script
-rw-r--r--remote/modules/pvs2/data/opt/openslx/vmchooser/sessionstart.d/50-PVSclient17
1 files changed, 8 insertions, 9 deletions
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
+