This commit is contained in:
scith 2015-09-14 18:13:54 +02:00
parent c533bd27b8
commit 5f59e48747
6 changed files with 15 additions and 25 deletions

View file

@ -19,15 +19,6 @@
"fr": "Choisissez un domaine pour Odoo (Odoo sera installé dans sa racine !)"
},
"example": "odoo.domain.org"
},
{
"name": "is_public",
"ask": {
"en": "Is it a public instance of Odoo? (Note: you can NOT run a public e-commerce website with Odoo in a private instance)",
"fr": "Est-ce une instance publique d'Odoo ? (Note : vous ne pouvez PAS utiliser Odoo comme site e-commerce dans une instance privée)"
},
"choices": ["Yes", "No"],
"default": "Yes"
},
{
"name": "odoo_version",

View file

@ -1,5 +1,3 @@
#! /bin/bash
app=docker
set -e
app=odoo
# TO BE DONE

View file

@ -4,9 +4,8 @@ set -e
# Retrieve arguments
domain=$1
is_public=$2
odoo_version=$3
admin_password=$4
odoo_version=$2
admin_password=$3
sudo yunohost app checkport 8069
if [[ ! $? -eq 0 ]]; then
@ -46,10 +45,8 @@ sudo yunohost app setting $app domain -v $domain
# Configure Nginx and reload
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
if [ "$is_public" = "Yes" ];
then
# Make Odoo public
sudo yunohost app setting $app skipped_uris -v "/"
fi
sudo service nginx reload
echo $?

View file

@ -1,8 +1,10 @@
#!/bin/bash
app=odoo
app=docker
# TO BE DONE
# Remove Odoo
sudo apt-get remove odoo
sudo apt-get remove wkhtmltopdf
sudo yunohost service remove odoo
# Remove NGINX conf
domain=$(sudo yunohost app setting $app domain)

View file

@ -1,5 +1,3 @@
#!/bin/bash
app=docker
set -e
app=odoo
# TO BE DONE

View file

@ -1,3 +1,7 @@
#!/bin/bash
app=odoo
# Upgrade official package
sudo apt-get install odoo -y -qq
# TBD