diff --git a/debian/control b/debian/control index 4903848..5c37fb8 100644 --- a/debian/control +++ b/debian/control @@ -7,7 +7,7 @@ Build-Depends: debhelper (>= 10), dh-python, python3 (>= 3.5), dh-systemd (>= 1. Package: openwebrx Architecture: all -Depends: python3 (>= 3.5), python3-pkg-resources, csdr (>= 0.14), netcat, owrx-connector (>= 0.1), ${python3:Depends} +Depends: adduser, python3 (>= 3.5), python3-pkg-resources, csdr (>= 0.14), netcat, owrx-connector (>= 0.1), ${python3:Depends} Recommends: digiham (>= 0.3), dsd (>= 1.7), sox, direwolf (>= 1.4), wsjtx Description: multi-user web sdr Open source, multi-user SDR receiver with a web interface \ No newline at end of file diff --git a/debian/postinst b/debian/postinst new file mode 100755 index 0000000..0cd9fc0 --- /dev/null +++ b/debian/postinst @@ -0,0 +1,4 @@ +#!/bin/bash +set -euxo pipefail + +adduser --system --group --no-create-home --home /nonexistant openwebrx \ No newline at end of file diff --git a/systemd/openwebrx.service b/systemd/openwebrx.service index 5865022..ab4ad9f 100644 --- a/systemd/openwebrx.service +++ b/systemd/openwebrx.service @@ -4,10 +4,10 @@ After=multi-user.target [Service] Type=simple -User=root -Group=root +User=openwebrx +Group=openwebrx ExecStart=/usr/bin/openwebrx -Restart=on-failure +Restart=always [Install] WantedBy=multi-user.target