Experience required with CentOS + Virtualmin + PostgreSQL
---
We need bash script that works with parameters and that will:
1) Create virtual server with specific [domain name; password; default settings and plan]
> see: [login to view URL]
2) Create postgresql database and user with the same password as hosting
3) Install Odoo from zip file based on parameter. (eg. for now we will only have v1 zip, parameter=v1 so zip file will be: [login to view URL])
> unzip archive to specific location
> change files ownership to new server user
4) Create new systemctl to run service odoo_username on port [last_port +1] (save last_port in a localfile, start from 8000)
> see examples in links bellow
5) Configure Apache to run proxy for Odoo port
> ex if new port will be 8111 you will need to add these rows on /etc/httpd/conf/[login to view URL] and remove php/fcgi handlers
ProxyPass / http://localhost:8111/
ProxyPassReverse / http://localhost:8111/
6) Import database from zip based on parameter.
> (eg. for now we will only have 1 zip, [login to view URL])
7) Rename specific user record in Odoo database [username, password, email]
> by default we will have 2 users in database: Administrator / Standard User with email X
> update Standard User with specific username+password+email that is provided in cli parameters
8) Create a new monit watch record
> add a new file in /etc/monit.d/ named [login to view URL]
> file content:
check process odoo_username with pidfile /run/[login to view URL]
start program = "/bin/systemctl start [login to view URL]"
stop program = "/bin/systemctl stop [login to view URL]"
if failed host [login to view URL] port 8111 type tcp for 3 cycles then restart
---
Some info and examples on how to install Odoo as standard:
[login to view URL]
[login to view URL]
[login to view URL]
---
return cases, string in this format:
error=User already exists
error=Unknown error, please try again later
succes=1
---
Command line eg:
./[login to view URL] -host '[login to view URL]' -serverpasswd 'password1' -user 'username' -email 'emailaddress' -userpasswd 'password2' -odooversion 'v1'
---
I provide server with virtualmin installed and root access
Hi There, I can write a bash script to get this done in which i am really good as i do have more then 8 years on Linux server administration experience mainly web services worked on all distros of linux family Cpanel, CWP, plesk, virtualmin/webmin, and all known clouds AWS/ GCP/ DigitalOcean etc.
I am offering the least but this task will take lot more efforts then the offered rate but for now i am concerned to get some positive reviews thats it so please allow me to help you.
$49 USD in 7 days
4.7 (6 reviews)
3.0
3.0
4 freelancers are bidding on average $85 USD for this job