diff --git a/HOWTO.md b/HOWTO.md index 686aa16..54f74e8 100644 --- a/HOWTO.md +++ b/HOWTO.md @@ -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 ``` diff --git a/login.sh b/login.sh index e65576a..19b2b2c 100755 --- a/login.sh +++ b/login.sh @@ -14,7 +14,7 @@ ODOO_VERSION="$1" -ODOO_RELEASE="$2" +ODOO_RELEASE=$(echo "${2}" | tr -d '-') validation() { diff --git a/start_container.sh b/start_container.sh index 1c43dc0..9ca2d0e 100755 --- a/start_container.sh +++ b/start_container.sh @@ -13,8 +13,8 @@ # ##### -ODOO_VERSION="$1" -ODOO_RELEASE="$2" +ODOO_VERSION="${1}" +ODOO_RELEASE=$(echo "${2}" | tr -d '-') validation() { diff --git a/stop_container.sh b/stop_container.sh index b5ef444..62214c6 100755 --- a/stop_container.sh +++ b/stop_container.sh @@ -13,8 +13,8 @@ # ##### -ODOO_VERSION="$1" -ODOO_RELEASE="$2" +ODOO_VERSION="${1}" +ODOO_RELEASE=$(echo "${2}" | tr -d '-') validation() {