summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2014-08-26 16:47:09 +0200
committerJonathan Bauer2014-08-26 16:47:09 +0200
commit04c7e43e2d778b72e6840ece1b9c733c52ce3fc0 (patch)
tree103141962f5653e09343d36c5389e75775c77338
parentforgot to remove file (diff)
downloadtm-scripts-04c7e43e2d778b72e6840ece1b9c733c52ce3fc0.tar.gz
tm-scripts-04c7e43e2d778b72e6840ece1b9c733c52ce3fc0.tar.xz
tm-scripts-04c7e43e2d778b72e6840ece1b9c733c52ce3fc0.zip
[pvs2-fr] fix startup sessionscript for pvs
-rw-r--r--remote/modules/pvs2/data/opt/openslx/vmchooser/sessionstart.d/50-PVSclient10
1 files changed, 6 insertions, 4 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 b33889df..1981736f 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,9 +1,11 @@
#!/bin/ash
# If the ENV var PVS has been set by vmchooser start pvsclient
-if [ -n "$PVS_SESSIONID" ]; then
- pvsclient --session-id "$PVS_SESSIONID" &
-else
- pvsclient &
+if [ -n "$PVS_START" -a "$PVS_START" == "yes" ]; then
+ if [ -n "$PVS_SESSIONID" ]; then
+ pvsclient "$PVS_SESSIONID" &
+ else
+ pvsclient --auto &
+ fi
fi