summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os-plugins/plugins/vmware/XX_vmware.sh2
-rw-r--r--os-plugins/plugins/vmware/files/install-vmpl.sh6
2 files changed, 4 insertions, 4 deletions
diff --git a/os-plugins/plugins/vmware/XX_vmware.sh b/os-plugins/plugins/vmware/XX_vmware.sh
index 269af04e..52ac6d4d 100644
--- a/os-plugins/plugins/vmware/XX_vmware.sh
+++ b/os-plugins/plugins/vmware/XX_vmware.sh
@@ -256,7 +256,7 @@ $(ipcalc -m $vmip/$vmpx|sed s/.*=//) {" \
elif [ "${vmware_kind}" = "vmpl2.0" ]; then
echo "vmplversion=2" > /mnt/etc/vmware/version
elif [ "${vmware_kind}" = "local" ]; then
- version=$(strings /usr/lib/vmware/bin/vmplayer|head -n 1|cut -c 1)
+ version=$(strings /mnt/usr/lib/vmware/bin/vmplayer|head -n 1|cut -c 1)
echo "vmplversion=${version}" > /mnt/etc/vmware/version
fi
diff --git a/os-plugins/plugins/vmware/files/install-vmpl.sh b/os-plugins/plugins/vmware/files/install-vmpl.sh
index 0708de8c..cc47e58d 100644
--- a/os-plugins/plugins/vmware/files/install-vmpl.sh
+++ b/os-plugins/plugins/vmware/files/install-vmpl.sh
@@ -3,7 +3,7 @@
cd /opt/openslx/plugin-repo/vmware/
### Check if player are still installed
-if [ -d vmroot/ ]; then
+if [ -d ${1}/vmroot/ ]; then
echo " * $1 seems to be installed. There shouldn't be a need for a new installation."
echo " If you want to reinstall $1 press \"y\" else we will exit"
read
@@ -16,10 +16,10 @@ fi
### Now define values
-if [ "$1" == "vmpl1.0" ]; then
+if [ "$1" = "vmpl1.0" ]; then
vmplversion="vmpl1.0"
tgzfile=$(ls packages/VMware-player-1.0.*|sort|tail -n 1)
-elif [ "$1" == "vmpl2.0" ]; then
+elif [ "$1" = "vmpl2.0" ]; then
vmplversion="vmpl2.0"
tgzfile=$(ls packages/VMware-player-2.0.*|sort|tail -n 1)
else