Modified system-scripts to not run as root but as system-user mmdvm.
Also added command in installation steps to create this user
This commit is contained in:
parent
03a926de96
commit
9355e2d24b
3 changed files with 7 additions and 2 deletions
|
@ -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…
Reference in a new issue