Fix config templates
The files got mixed up in the initial commit and the systemd service file was accidently set as the config file and the config file was never added. This commit fixes the oversight.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
[Unit]
|
||||
Description=lpmqtt Daemon
|
||||
[imap]
|
||||
hostname = <%= @imap_hostname %>
|
||||
username = <%= @imap_username %>
|
||||
password = <%= @imap_password %>
|
||||
use_ssl = <%= @imap_use_ssl %>
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/local/bin/lpmqtt /etc/lpmqtt.conf
|
||||
User=lpmqtt
|
||||
Group=lpmqtt
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
[mqtt]
|
||||
hostname = <%= @mqtt_hostname %>
|
||||
base_topic = <%= @topic %>
|
||||
username = <%= @mqtt_username %>
|
||||
password = <%= @mqtt_password %>
|
||||
|
11
templates/lpmqtt.service.erb
Normal file
11
templates/lpmqtt.service.erb
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=lpmqtt Daemon
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/local/bin/lpmqtt /etc/lpmqtt.conf
|
||||
User=lpmqtt
|
||||
Group=lpmqtt
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user