mirror of
https://github.com/YunoHost-Apps/libreerp_ynh.git
synced 2024-09-03 19:36:13 +02:00
fix
This commit is contained in:
parent
c533bd27b8
commit
5f59e48747
6 changed files with 15 additions and 25 deletions
|
@ -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",
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#! /bin/bash
|
||||
app=docker
|
||||
set -e
|
||||
|
||||
app=odoo
|
||||
# TO BE DONE
|
|
@ -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
|
||||
|
@ -44,12 +43,10 @@ sudo yunohost app setting $app domain -v $domain
|
|||
sudo yunohost service start odoo
|
||||
|
||||
# Configure Nginx and reload
|
||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
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 $?
|
|
@ -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)
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#!/bin/bash
|
||||
app=docker
|
||||
set -e
|
||||
|
||||
app=odoo
|
||||
# TO BE DONE
|
|
@ -1,3 +1,7 @@
|
|||
#!/bin/bash
|
||||
app=odoo
|
||||
|
||||
# Upgrade official package
|
||||
sudo apt-get install odoo -y -qq
|
||||
|
||||
# TBD
|
||||
|
|
Loading…
Reference in a new issue