login.sh,start_container.sh,stop_container.sh: allow 2nd arguments to be passed as date or release.

This commit is contained in:
Pedro Salgado 2016-12-30 20:26:10 -07:00
parent 0cd42c8eaa
commit f1f19d771c
4 changed files with 11 additions and 5 deletions

View File

@ -49,11 +49,17 @@ There are some auxiliary bash scripts to run docker container locally.
```bash
# start an Odoo release container
$ bash start_container.sh 9.0 2016-11-23
# or
$ bash start_container.sh 9.0 20161123
# open interactive session on the Odoo container
$ bash login.sh 9.0 2016-11-23
# or
$ bash login.sh 9.0 20161123
# stop and destroy
$ bash stop_container.sh 9.0 2016-11-23
# or
$ bash stop_container.sh 9.0 20161123
```

View File

@ -14,7 +14,7 @@
ODOO_VERSION="$1"
ODOO_RELEASE="$2"
ODOO_RELEASE=$(echo "${2}" | tr -d '-')
validation() {

View File

@ -13,8 +13,8 @@
# #####
ODOO_VERSION="$1"
ODOO_RELEASE="$2"
ODOO_VERSION="${1}"
ODOO_RELEASE=$(echo "${2}" | tr -d '-')
validation() {

View File

@ -13,8 +13,8 @@
# #####
ODOO_VERSION="$1"
ODOO_RELEASE="$2"
ODOO_VERSION="${1}"
ODOO_RELEASE=$(echo "${2}" | tr -d '-')
validation() {