From 9d213328aff05aee4f19cab9d3a78355332ac0e9 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Thu, 11 Jun 2020 21:06:54 +0200 Subject: [PATCH] new: [myc-install] will install ``docker-clean`` in cron. It was removed from ``host`` charm, and need to be removable if needed. Signed-off-by: Valentin Lab --- README.org | 2 ++ bin/myc-install | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/README.org b/README.org index e8b50a9..9f7d6d5 100644 --- a/README.org +++ b/README.org @@ -40,12 +40,14 @@ mycéliandre. Un compose de base est aussi proposé. **** Hôte linux base debian 9 #+BEGIN_SRC sh +export WITHOUT_DOCKER_CLEAN=1 ## only if you want to remove docker clean from cron wget https://justodooit.myceliandre.fr/r/deploy -qO - | bash #+END_SRC If you want to setup odoo admin password and domain in one go: #+BEGIN_SRC sh +export WITHOUT_DOCKER_CLEAN=1 ## only if you want to remove docker clean from cron export DOMAIN=myhost.com wget https://justodooit.myceliandre.fr/r/deploy -qO - | bash #+END_SRC diff --git a/bin/myc-install b/bin/myc-install index 3efc223..ff87e0e 100755 --- a/bin/myc-install +++ b/bin/myc-install @@ -57,6 +57,10 @@ fi type -t docker-clean || ln -sfv /opt/apps/0k-docker/src/bin/docker-clean /usr/local/bin +if [ -z "$WITHOUT_DOCKER_CLEAN" ]; then + ln -sfn /opt/apps/0k-docker/src/bin/docker-clean /etc/cron.daily/docker-clean +fi + ## To remove when image in odoo-tecnativa is not used anymore echo "Login into our server." docker login -u deploy -p deployinvm git.panda-chi.io:5002