Skip to content

Commit

Permalink
include update step
Browse files Browse the repository at this point in the history
  • Loading branch information
henne49 committed May 26, 2024
1 parent 9d385df commit 5c1f17a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ rm /data/dbus-opendtu/current.log
chmod a+x /data/dbus-opendtu/install.sh
```

The following commands should do everything for you:

⚠️**Edit the following configuration file according to your needs before proceeding**⚠️ see [Configuration](#configuration) for details.

```bash
Expand All @@ -78,6 +80,27 @@ rm main.zip

Check configuration after that - because the service is already installed and running. In case of wrong connection data (host, username, pwd) you will spam the log-file! Also, check to **set a** proper (minimal) **log level**

### Update the code
Just grap a copy of the main branch and copy the content to `/data/` e.g. `/data/dbus-opendtu`.
After that call the `install.sh script.

```bash
wget -O main.zip https://github.com/henne49/dbus-opendtu/archive/refs/heads/main.zip
unzip main.zip "dbus-opendtu-main/*" -d /data
rm /data/dbus-opendtu-main/config.ini
rm /data/dbus-opendtu/current.log
cp -R /data/dbus-opendtu-main/* /data/dbus-opendtu
chmod a+x /data/dbus-opendtu/install.sh
```

Tha last step is to install the service and remove the downloaded files:

```bash
/data/dbus-opendtu/install.sh
/data/dbus-opendtu/restart.sh
rm main.zip
```

### Configuration

Within the project there is a file `/data/dbus-opendtu/config.ini`. Most important is the DTU variant, Host and Username and Password, if you use authentication.
Expand Down

0 comments on commit 5c1f17a

Please sign in to comment.