🔨 Refactor of init scripts

This commit is contained in:
Franck Nijhof 2019-04-21 09:02:35 +02:00
parent 446a6a3fd2
commit 7588a58d88
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3
3 changed files with 2 additions and 9 deletions

View file

@ -1,8 +0,0 @@
#!/usr/bin/with-contenv bashio
# ==============================================================================
# Community Hass.io Add-ons: Phlex
# This files check if all user configuration requirements are met
# ==============================================================================
# Check SSL requirements, if enabled
bashio::config.require.ssl 'ssl' 'certfile' 'keyfile'

View file

@ -3,10 +3,11 @@
# Community Hass.io Add-ons: Phlex
# Configures NGINX for use with Phlex
# ==============================================================================
declare certfile
declare keyfile
bashio::config.require.ssl
# Enable SSL
if bashio::config.true 'ssl'; then
rm /etc/nginx/nginx.conf