Skip to content

Conversation

@martinhbramwell
Copy link

When I first tried your script, it failed because Odoo seems to have removed their sample openerp-server-conf file to a different sub-directory.

I noticed you were using sed patching and cat appending to that and other files. In my experience the "here document" is a much more readable and maintainable alternative, so I changed it to do that. Then I found my self wanting to add a few more tricks that make scripts more maintainable &/or less work.

My changes include :

  • make calls to GitHub idempotent
  • make mkdir calls idempotent
  • put complicated command groups into functions for improved readability.
  • force user to run script as root thus eliminating dependence on "sudo"
  • call apt-get less often if running the script repeatedly (debugging)
  • fix missing quote
  • remove superfluous white space

Thanks for providing your script in the first place! It helped me ensure that my understanding of the new file hierarchy in GitHub is correct.

martinhbramwell and others added 5 commits June 4, 2014 09:31
 - call apt-get less often
 - make calls to GitHub idempotent
 - make mkdir calls idempotent
 - fix missing quote
 - remove superfluous whitespace

	modified:   odoo-saas4/ubuntu-14-04/odoo_install.sh
 - call apt-get less often
 - make calls to GitHub idempotent
 - make mkdir calls idempotent
 - fix missing quote
 - remove superfluous whitespace

	modified:   odoo-saas4/ubuntu-14-04/odoo_install.sh
Create config files using "here doc" rules, instead of patching &/or appending attributes
Put complicated command groups into functions for improved readability.
Force running script as root and eliminate all dependence on "sudo"
	modified:   odoo-saas4/ubuntu-14-04/odoo_install.sh
Also:
 - relocate constants to top
 - detect presence of openerp-server file to distinguish pull vs clone
 - don't install unused packages (subversion, bzr, etc.)
Changes to be committed:
	modified:   odoo-saas4/ubuntu-14-04/odoo_install.sh
  so multiple parallel versions can be kept
 Changes to be committed:
	modified:   odoo-saas4/ubuntu-14-04/odoo_install.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants