Skip to content

Commit

Permalink
Fix .deb packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
gotthardp committed May 6, 2017
1 parent 4e4854d commit 05c9f3d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ deploy:
skip_cleanup: true
file:
- $TRAVIS_BUILD_DIR/_build/default/rel/lorawan-server/lorawan-server-*.tar.gz
- /tmp/lorawan-server-*.deb
- $TRAVIS_BUILD_DIR/_build/default/rel/lorawan-server/lorawan-server_*_all.deb
on:
condition: $TRAVIS_OTP_RELEASE = 19.3
tags: true
Expand Down
5 changes: 3 additions & 2 deletions doc/Installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,12 @@ content.
On the Debian Linux and its clones like Raspbian you can use the .deb package.

Build the Debian package bu running `make dpkg`. It will request your `root`
password and then create a package `/tmp/lorawan-server_<VERSION>.deb`.
password and then create a package
`lorawan-server/_build/default/rel/lorawan-server/lorawan-server_<VERSION>.deb`.

You can then install the package by:
```bash
dpkg -i /tmp/lorawan-server-*.deb
dpkg -i lorawan-server_*.deb
```

You can start the server by `systemctl start lorawan-server`.
2 changes: 1 addition & 1 deletion scripts/dpkg-deb/build-deb
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ rsync -tp ${SCRIPT_DIR}/control ${SCRIPT_DIR}/postinst ${SCRIPT_DIR}/postrm $ROO
mkdir -p $ROOT/usr/share/doc/lorawan-server
rsync -tp ${SCRIPT_DIR}/../../LICENSE $ROOT/usr/share/doc/lorawan-server/copyright

fakeroot dpkg-deb --build $ROOT
fakeroot dpkg-deb --build $ROOT $REL

0 comments on commit 05c9f3d

Please sign in to comment.