diff options
author | Simon Rettberg | 2014-07-11 12:04:13 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-07-11 12:04:13 +0200 |
commit | 48481ab226ba3415f9efd93378717f4c1f81cccb (patch) | |
tree | cd92daf4cdb22a44420af67d3d9eab86ee8ff6fa | |
parent | Merge branch 'master' of git.openslx.org:openslx-ng/tm-scripts (diff) | |
download | tm-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-PVSclient | 17 |
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 + |