Skip to content

Commit

Permalink
Update How-To-Install-RPI-Docker.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pipiche38 committed Dec 11, 2023
1 parent e0e49bc commit 3ab7c51
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions en-eng/How-To-Install-RPI-Docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit 3ab7c51

Please sign in to comment.