title: how to deactivate virtualenv from a bash script
body: <p>I'm a novice in shell scripting, but I want to make a bash script for activate/deactivate a virtual enviroment using virtualenv.
  Then I want to use this script like a service in Ubuntu copying it inside /etc/init.d folder.</p>
  
  <p>In my script, I have a variable like this:
  <code>VENV=/opt/odoo/odoo_server/venv_oddo/bin</code></p>
  
  <p>This variable represents the bin path in my virtual enviroment.</p>
  
  <p>Inside the script, I can activate the virtual enviroment with this statement:
  <code>. ${VENV}/activate</code></p>
  
  <p>This is possible because activate is a file inside bin directory in the virtual enviroment.</p>
  
  <p>But I don't know the statement to use in my script to deactivate my virtual enviroment. 
  I can't do this: <code>. ${VENV}/deactivate</code></p>
  
  <p>The problem is that doesn't exist a file named deactivate, but deactivated is a function inside the bin/activate file in the virtual enviroment.</p>