Addressing the #2 security concerns reported by @tvibliani about the user created with the script. This is made that way because this is a “system” user. It is there to own and run the application, it isn’t supposed to be a person type user with a login etc. In Ubuntu, a system user gets a UID below 1000, has no shell (it’s actually /bin/false) and has logins disabled.
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.