Skip to content

Instantly share code, notes, and snippets.

@waltervargas
Created September 2, 2014 09:32
Show Gist options
  • Save waltervargas/853a74b89fc8d8df0d05 to your computer and use it in GitHub Desktop.
Save waltervargas/853a74b89fc8d8df0d05 to your computer and use it in GitHub Desktop.
Vagrant Openerp Start
#!/bin/bash
DAEMON=/usr/bin/openerp-server
CONFIG=/etc/openerp/openerp-server.conf
USER=openerp
ARGS="$DAEMON --config $CONFIG --update=$1"
CMD="sudo su $USER -s /bin/sh -c '$ARGS'"
vagrant ssh -c "$CMD"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment