From 3ab7c5131ecc0f7b89e4640d9c5807fed561391b Mon Sep 17 00:00:00 2001 From: Pipiche Date: Mon, 11 Dec 2023 22:10:15 +0100 Subject: [PATCH] Update How-To-Install-RPI-Docker.md --- en-eng/How-To-Install-RPI-Docker.md | 64 ++++++++++++++--------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/en-eng/How-To-Install-RPI-Docker.md b/en-eng/How-To-Install-RPI-Docker.md index 83875aa..1ac218c 100644 --- a/en-eng/How-To-Install-RPI-Docker.md +++ b/en-eng/How-To-Install-RPI-Docker.md @@ -14,41 +14,41 @@ When the Domoticz setup is correctly configured, and you have been able to acces 1. Open a sheel in the container - `docker exec -it domoticz /bin/bash` + `docker exec -it domoticz /bin/bash` 1. clone the Z4D plugin - ```bash - cd /opt/domoticz/userdata/plugins/ - git clone https://github.com/zigbeefordomoticz/Domoticz-Zigbee.git - ```` + ```bash + cd /opt/domoticz/userdata/plugins/ + git clone https://github.com/zigbeefordomoticz/Domoticz-Zigbee.git + ```` 1. Edit the Domoticz custom script, so the python modules are correctly installed and up to date - `vi /opt/domoticz/userdata/customstart.sh` - - ```bash - #!/bin/bash - - if [ -f /opt/domoticz/FIRSTRUN ]; then - true - else - echo 'creating FIRSTRUN file so script can check on next run' - touch /opt/domoticz/FIRSTRUN - - echo 'updating packages' - apt-get -qq update - - echo 'installing iputils-ping' - apt-get -y install iputils-ping - - echo 'installing vim editor' - apt-get -y install vim-ping - - if [ -f /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt ]; then - echo 'Install the necessary python3 modules for Zigbee for Domoticz plugin' - python3 -m pip install -r /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt --upgrade - fi - cd /opt/domoticz || return - fi - ``` + `vi /opt/domoticz/userdata/customstart.sh` + + ```bash + #!/bin/bash + + if [ -f /opt/domoticz/FIRSTRUN ]; then + true + else + echo 'creating FIRSTRUN file so script can check on next run' + touch /opt/domoticz/FIRSTRUN + + echo 'updating packages' + apt-get -qq update + + echo 'installing iputils-ping' + apt-get -y install iputils-ping + + echo 'installing vim editor' + apt-get -y install vim-ping + + if [ -f /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt ]; then + echo 'Install the necessary python3 modules for Zigbee for Domoticz plugin' + python3 -m pip install -r /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt --upgrade + fi + cd /opt/domoticz || return + fi + ```