diff options
author | Jonathan Bauer | 2014-08-26 16:47:09 +0200 |
---|---|---|
committer | Jonathan Bauer | 2014-08-26 16:47:09 +0200 |
commit | 04c7e43e2d778b72e6840ece1b9c733c52ce3fc0 (patch) | |
tree | 103141962f5653e09343d36c5389e75775c77338 | |
parent | forgot to remove file (diff) | |
download | tm-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-PVSclient | 10 |
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 |