From 9c10de6b267679888960649dfcd73e288574b74f Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Wed, 31 Aug 2016 15:56:01 -0400 Subject: [PATCH] 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. --- templates/lpmqtt.conf.erb | 20 ++++++++++---------- templates/lpmqtt.service.erb | 11 +++++++++++ 2 files changed, 21 insertions(+), 10 deletions(-) create mode 100644 templates/lpmqtt.service.erb diff --git a/templates/lpmqtt.conf.erb b/templates/lpmqtt.conf.erb index 3b736fb..4e1ad9c 100644 --- a/templates/lpmqtt.conf.erb +++ b/templates/lpmqtt.conf.erb @@ -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 %> diff --git a/templates/lpmqtt.service.erb b/templates/lpmqtt.service.erb new file mode 100644 index 0000000..3b736fb --- /dev/null +++ b/templates/lpmqtt.service.erb @@ -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