make SOCKS proxy optional

This commit is contained in:
Markus 2019-10-14 19:38:37 +02:00
parent 18ce76d839
commit dbdb1c37e6

View File

@ -10,5 +10,9 @@ echo -n 'Password: '
read -s dracpass
echo
java -cp avctKVM.jar -Djava.library.path=./lib -DsocksProxyHost=127.0.0.1 com.avocent.idrac.kvm.Main ip=$drachost vmprivilege=true kmport=5900 vport=5900 user=$dracuser passwd=$dracpass apcp=1 version=2
if [ -z "${SOCKS_PROXY}" ]
then
java -cp avctKVM.jar -Djava.library.path=./lib com.avocent.idrac.kvm.Main ip=$drachost vmprivilege=true kmport=5900 vport=5900 user=$dracuser passwd=$dracpass apcp=1 version=2
else
java -cp avctKVM.jar -Djava.library.path=./lib -DsocksProxyHost=$SOCKS_PROXY com.avocent.idrac.kvm.Main ip=$drachost vmprivilege=true kmport=5900 vport=5900 user=$dracuser passwd=$dracpass apcp=1 version=2
fi