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 !)"
|
"fr": "Choisissez un domaine pour Odoo (Odoo sera installé dans sa racine !)"
|
||||||
},
|
},
|
||||||
"example": "odoo.domain.org"
|
"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",
|
"name": "odoo_version",
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
app=docker
|
app=odoo
|
||||||
set -e
|
|
||||||
|
|
||||||
# TO BE DONE
|
# TO BE DONE
|
|
@ -4,9 +4,8 @@ set -e
|
||||||
|
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
domain=$1
|
domain=$1
|
||||||
is_public=$2
|
odoo_version=$2
|
||||||
odoo_version=$3
|
admin_password=$3
|
||||||
admin_password=$4
|
|
||||||
|
|
||||||
sudo yunohost app checkport 8069
|
sudo yunohost app checkport 8069
|
||||||
if [[ ! $? -eq 0 ]]; then
|
if [[ ! $? -eq 0 ]]; then
|
||||||
|
@ -46,10 +45,8 @@ sudo yunohost app setting $app domain -v $domain
|
||||||
# Configure Nginx and reload
|
# 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" ];
|
# Make Odoo public
|
||||||
then
|
|
||||||
sudo yunohost app setting $app skipped_uris -v "/"
|
sudo yunohost app setting $app skipped_uris -v "/"
|
||||||
fi
|
|
||||||
|
|
||||||
sudo service nginx reload
|
sudo service nginx reload
|
||||||
echo $?
|
echo $?
|
|
@ -1,8 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
app=odoo
|
||||||
|
|
||||||
app=docker
|
# Remove Odoo
|
||||||
|
sudo apt-get remove odoo
|
||||||
# TO BE DONE
|
sudo apt-get remove wkhtmltopdf
|
||||||
|
sudo yunohost service remove odoo
|
||||||
|
|
||||||
# Remove NGINX conf
|
# Remove NGINX conf
|
||||||
domain=$(sudo yunohost app setting $app domain)
|
domain=$(sudo yunohost app setting $app domain)
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
app=docker
|
app=odoo
|
||||||
set -e
|
|
||||||
|
|
||||||
# TO BE DONE
|
# TO BE DONE
|
|
@ -1,3 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
app=odoo
|
||||||
|
|
||||||
|
# Upgrade official package
|
||||||
|
sudo apt-get install odoo -y -qq
|
||||||
|
|
||||||
# TBD
|
# TBD
|
||||||
|
|
Loading…
Reference in a new issue