Commit 48aabca1 authored by Jondy Zhao's avatar Jondy Zhao

No windows openvpn, it doesn't work to run the script.

parent 53f1d59f
...@@ -334,23 +334,14 @@ if [[ ! -r $re6stnet_configure_file ]] ; then ...@@ -334,23 +334,14 @@ if [[ ! -r $re6stnet_configure_file ]] ; then
echo " ovpnlog" echo " ovpnlog"
echo " main-interface $slapos_ifname" echo " main-interface $slapos_ifname"
echo " interface $slapos_ifname" echo " interface $slapos_ifname"
echo " log $(cygpath -m /var/log/re6stnet)"
echo -e "# $subnet\ntable 0\novpnlog" \ echo -e "# $subnet\ntable 0\novpnlog" \
"\nmain-interface $slapos_ifname\ninterface $slapos_ifname" \ "\nmain-interface $slapos_ifname\ninterface $slapos_ifname" \
"\nlog $(cygpath -m /var/log/re6stnet)" \
>> $re6stnet_configure_file >> $re6stnet_configure_file
fi fi
# Run re6stnet if no native ipv6 # Run re6stnet if no native ipv6
if check_re6stnet_needed ; then if check_re6stnet_needed ; then
check_re6stnet_configure || exit 1 check_re6stnet_configure || exit 1
if [[ ! -r $re6stnet_cygwin_script ]] ; then
cat <<EOF > $re6stnet_cygwin_script
$(cygpath -w /bin/bash.exe) --login -c 'python %*'
EOF
chmod +x $re6stnet_cygwin_script
fi
if ! cygrunsrv --query $re6stnet_service_name >/dev/null 2>&1 ; then if ! cygrunsrv --query $re6stnet_service_name >/dev/null 2>&1 ; then
cygrunsrv -I $re6stnet_service_name -c $(dirname $re6stnet_configure_file) \ cygrunsrv -I $re6stnet_service_name -c $(dirname $re6stnet_configure_file) \
-p $(which re6stnet) -a "@re6stnet.conf" -d "CYGWIN re6stnet" || \ -p $(which re6stnet) -a "@re6stnet.conf" -d "CYGWIN re6stnet" || \
......
...@@ -19,7 +19,6 @@ slapos_ifname=re6stnet-lo ...@@ -19,7 +19,6 @@ slapos_ifname=re6stnet-lo
ipv4_local_network=10.201.67.0/24 ipv4_local_network=10.201.67.0/24
re6stnet_configure_file=/etc/re6stnet/re6stnet.conf re6stnet_configure_file=/etc/re6stnet/re6stnet.conf
re6stnet_cygwin_script=/etc/re6stnet/ovpn-cygwin.bat
re6stnet_service_name=slapos-re6stnet re6stnet_service_name=slapos-re6stnet
slaprunner_startup_file=/etc/slapos/scripts/slap-runner.html slaprunner_startup_file=/etc/slapos/scripts/slap-runner.html
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment