diff options
Diffstat (limited to 'unifi-protect-viewport/templates')
| -rw-r--r-- | unifi-protect-viewport/templates/unifi-protect-viewport.env.j2 | 20 | ||||
| -rw-r--r-- | unifi-protect-viewport/templates/unifi-protect-viewport.service.j2 | 10 |
2 files changed, 15 insertions, 15 deletions
diff --git a/unifi-protect-viewport/templates/unifi-protect-viewport.env.j2 b/unifi-protect-viewport/templates/unifi-protect-viewport.env.j2 index 9fa8830..6d5dc9c 100644 --- a/unifi-protect-viewport/templates/unifi-protect-viewport.env.j2 +++ b/unifi-protect-viewport/templates/unifi-protect-viewport.env.j2 @@ -1,10 +1,10 @@ -DOORBELL_VIEWPORT_PROTECT_HOST={{doorbell_viewport_protect_host}} -DOORBELL_VIEWPORT_PROTECT_USERNAME={{vault_doorbell_viewport_protect_username}} -DOORBELL_VIEWPORT_PROTECT_PASSWORD={{vault_doorbell_viewport_protect_password}} -DOORBELL_VIEWPORT_CAMERA_ID={{doorbell_viewport_camera_id}} -DOORBELL_VIEWPORT_TIMEOUT={{doorbell_viewport_timeout}} -DOORBELL_VIEWPORT_TOUCH_MATCH={{doorbell_viewport_touch_match}} -DOORBELL_VIEWPORT_ORIENTATION={{doorbell_viewport_orientation}} -DOORBELL_VIEWPORT_DRM_DEVICE={{doorbell_viewport_drm_device}} -DOORBELL_VIEWPORT_DRM_CONNECTOR={{doorbell_viewport_drm_connector}} -DOORBELL_VIEWPORT_DRM_MODE={{doorbell_viewport_drm_mode}} +UNIFI_PROTECT_VIEWPORT_PROTECT_HOST={{unifi_protect_viewport_protect_host}} +UNIFI_PROTECT_VIEWPORT_PROTECT_USERNAME={{vault_unifi_protect_viewport_protect_username}} +UNIFI_PROTECT_VIEWPORT_PROTECT_PASSWORD={{vault_unifi_protect_viewport_protect_password}} +UNIFI_PROTECT_VIEWPORT_CAMERA_ID={{unifi_protect_viewport_camera_id}} +UNIFI_PROTECT_VIEWPORT_TIMEOUT={{unifi_protect_viewport_timeout}} +UNIFI_PROTECT_VIEWPORT_TOUCH_MATCH={{unifi_protect_viewport_touch_match}} +UNIFI_PROTECT_VIEWPORT_ORIENTATION={{unifi_protect_viewport_orientation}} +UNIFI_PROTECT_VIEWPORT_DRM_DEVICE={{unifi_protect_viewport_drm_device}} +UNIFI_PROTECT_VIEWPORT_DRM_CONNECTOR={{unifi_protect_viewport_drm_connector}} +UNIFI_PROTECT_VIEWPORT_DRM_MODE={{unifi_protect_viewport_drm_mode}} diff --git a/unifi-protect-viewport/templates/unifi-protect-viewport.service.j2 b/unifi-protect-viewport/templates/unifi-protect-viewport.service.j2 index 01cce45..43dfce6 100644 --- a/unifi-protect-viewport/templates/unifi-protect-viewport.service.j2 +++ b/unifi-protect-viewport/templates/unifi-protect-viewport.service.j2 @@ -1,14 +1,14 @@ [Unit] -Description=Doorbell Viewport +Description=UniFi Protect Viewport After=network-online.target Wants=network-online.target [Service] Type=simple -User={{doorbell_viewport_user}} -Group={{doorbell_viewport_user}} -EnvironmentFile=/etc/doorbell-viewport/doorbell-viewport.env -ExecStart=/usr/local/bin/doorbell-viewport +User={{unifi_protect_viewport_user}} +Group={{unifi_protect_viewport_user}} +EnvironmentFile=/etc/unifi-protect-viewport/unifi-protect-viewport.env +ExecStart=/usr/local/bin/unifi-protect-viewport Restart=always RestartSec=5 StandardOutput=journal |
