Permalink
Browse files

ESXi Template VNC settings now work on reboot

  • Loading branch information...
1 parent 947d527 commit 0baa20bdd4478bc56522bfa5bc293bf86f608bf5 @jasonberanek committed Feb 3, 2013
Showing with 5 additions and 3 deletions.
  1. +5 −3 templates/VMware-ESXi-5.1-x86_64/vnc_enable.sh
@@ -32,8 +32,10 @@ echo "
cp /store/firewall/service.xml /etc/vmware/firewall/service.xml
esxcli network firewall refresh
-# Add steps to profile.local to repeat these steps on reboot
+sed -i "s/exit 0//" /etc/rc.local.d/local.sh
+
+# Add steps to /etc/rc.local/local.sh to repeat these steps on reboot
echo "
cp /store/firewall/service.xml /etc/vmware/firewall/service.xml
-esxcli network firewall refresh" >> /etc/profile.local
-
+esxcli network firewall refresh
+exit 0" >> /etc/rc.local.d/local.sh

0 comments on commit 0baa20b

Please sign in to comment.