1
0
Fork 0

Modified system-scripts to not run as root but as system-user mmdvm.

Also added command in installation steps to create this user
main
Kim Huebel 4 years ago
parent 03a926de96
commit 9355e2d24b

@ -43,6 +43,7 @@ Actually known:
* Python3.7 at least must be instaled
### Installation steps
* first of all (if not already done by installation of MMDVMHost): create a syetemuser with `sudo adduser --system --no-create-home --group mmdvm`
* clone this repository to your home-directory with `git clone --recurse-submodules -j8 https://github.com/dg9vh/MMDVMHost-Websocketboard` to clone the repository with it's submodules
* create directory with `sudo mkdir /opt/MMDVMDash`
* change ownership to your user for example with `sudo chown -R pi /opt/MMDVMDash`

@ -3,9 +3,11 @@ Description=Python3 http.server
After=network.target
[Service]
ExecStartPre=/bin/sleep 30
Type=simple
User=mmdvm
Group=mmdvm
Restart=always
ExecStartPre=/bin/sleep 30
# Modify for different location of Python3 or other port
ExecStart=/usr/bin/python3 -m http.server 8000 --directory /opt/MMDVMDash/html

@ -3,9 +3,11 @@ Description=Python3 logtailer for MMDVMDash
After=network.target
[Service]
ExecStartPre=/bin/sleep 30
Type=simple
User=mmdvm
Group=mmdvm
Restart=always
ExecStartPre=/bin/sleep 30
# Modify for different location of Python3 or other port
WorkingDirectory=/opt/MMDVMDash/
ExecStart=/usr/bin/python3 /opt/MMDVMDash/logtailer.py

Loading…
Cancel
Save