mirror of
https://github.com/hassio-addons/addon-phlex.git
synced 2025-05-04 19:21:35 +00:00
🔨 Refactor of init scripts
This commit is contained in:
parent
446a6a3fd2
commit
7588a58d88
3 changed files with 2 additions and 9 deletions
|
@ -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'
|
|
|
@ -3,10 +3,11 @@
|
||||||
# Community Hass.io Add-ons: Phlex
|
# Community Hass.io Add-ons: Phlex
|
||||||
# Configures NGINX for use with Phlex
|
# Configures NGINX for use with Phlex
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
|
|
||||||
declare certfile
|
declare certfile
|
||||||
declare keyfile
|
declare keyfile
|
||||||
|
|
||||||
|
bashio::config.require.ssl
|
||||||
|
|
||||||
# Enable SSL
|
# Enable SSL
|
||||||
if bashio::config.true 'ssl'; then
|
if bashio::config.true 'ssl'; then
|
||||||
rm /etc/nginx/nginx.conf
|
rm /etc/nginx/nginx.conf
|
Loading…
Add table
Add a link
Reference in a new issue