The odoo user is a system user, created even without shell access rights and no password, because his solely purpose is to run the whole odoo process and that's all. The odoo user should not have any access level to the system beyond the scope of his own software.
Sudoers access should only be given to known system administrators. It adds an small overhead, but it's worth it as an small exchange from a good security policy point of view.
Added the "--depth 1" to the command so it only retrieves the latest version without all the repository history, which makes the download quite a bit quicker, and uses less space in disk, making it suitable for a production environment.
- Integer overflow test does not worked properly and is not reliable
indicator of host architecture, it replaced with "getconf LONG_BIT"
that was tested and worked properly on Ubuntu 14.04.
now wkhtml2pdf downloads are correctly adapted to x64 and x32 hosts.
- Automatically choose between wkhtml2pdf x64 and x32 versions,
according of host architecture.
- Replaced "dpkg -i" with "gdebi --n", in order to have installed
all wkhtml2pdf dependencies automatically, if any of them is missing
from the system.
- Make shortcuts in /usr/bin directory, instead of copying actual binary
files that are part of installed wkthml2pdf package.
- Added .gitignore in order to prevent garbage file upload to the
repository.
- In order to automate installation, added -y option to "apt-get
install" command, as without -y the command enters interactive
mode with a question below:
"Do you want to continue? [Y/n]"
Added:
- Odoo is now automatically started at the end of the install script
- The terminal now shows an overview with all details about the freshly installed Odoo. This will give you a good insight and will also show possible errors that you might have made.