Skip to content

Commit

Permalink
Merge pull request #64 from telekom-mms/feature/update-goreleaser-config
Browse files Browse the repository at this point in the history
Update GoReleaser config
  • Loading branch information
hwipl authored Mar 25, 2024
2 parents b2c2524 + 689c15e commit 9f75b17
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
21 changes: 18 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,22 @@ builds:
- -s -w -X github.com/telekom-mms/oc-daemon/internal/daemon.Version={{.Version}}-{{.Commit}}
archives:
- format: tar.gz
rlcp: true
wrap_in_directory: true
files:
- src: init/oc-daemon.service
dst: oc-daemon.service
dst: systemd/oc-daemon.service
info:
mode: 0644
- src: configs/oc-client.json
dst: example_config.json
dst: examples/oc-client.json
info:
mode: 0644
- src: configs/oc-daemon.json
dst: examples/oc-daemon.json
info:
mode: 0644
- src: configs/dbus/com.telekom_mms.oc_daemon.Daemon.conf
dst: dbus/com.telekom_mms.oc_daemon.Daemon.conf
info:
mode: 0644
- README.md
Expand Down Expand Up @@ -99,10 +106,18 @@ nfpms:
dst: /lib/systemd/system/
file_info:
mode: 0644
- src: configs/dbus/com.telekom_mms.oc_daemon.Daemon.conf
dst: /usr/share/dbus-1/system.d/
file_info:
mode: 0644
- src: configs/oc-client.json
dst: /usr/share/doc/oc-daemon/examples/
file_info:
mode: 0644
- src: configs/oc-daemon.json
dst: /usr/share/doc/oc-daemon/examples/
file_info:
mode: 0644
- src: copyright
dst: /usr/share/doc/oc-daemon/
file_info:
Expand Down
9 changes: 6 additions & 3 deletions docs/user/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $ tar -xf oc-daemon.tar.gz && cd <extracted directory>

# prepare config
$ sudo mkdir /var/lib/oc-daemon
$ sudo cp /example_config.json /var/lib/oc-daemon/oc-client.json # and adjust config parameters
$ sudo cp examples/oc-client.json /var/lib/oc-daemon/oc-client.json # and adjust config parameters
$ sudo cp profile.xml /var/lib/oc-daemon/
$ sudo chgrp -R dialout /var/lib/oc-daemon/
$ sudo chmod 664 /var/lib/oc-daemon/profile.xml
Expand All @@ -53,10 +53,13 @@ $ sudo chmod 644 /var/lib/oc-daemon/oc-client.json
# setup user to use vpn
$ sudo usermod -a -G dialout $USER
$ sudo cp oc-client oc-daemon oc-daemon-vpncscript /usr/bin/
$ sudo cp oc-daemon.service /lib/systemd/system/

# setup dbus config
$ sudo cp dbus/com.telekom_mms.oc_daemon.Daemon.conf /usr/share/dbus-1/system.d/

# enable and start daemon
$ sudo cp systemd/oc-daemon.service /lib/systemd/system/
$ sudo systemctl --system daemon-reload
$ sudo systemctl enable oc-daemon.service
$ sudo systemctl start oc-daemon.service
```
```

0 comments on commit 9f75b17

Please sign in to comment.