mirror of
https://github.com/hassio-addons/addon-traccar.git
synced 2025-05-05 03:21:31 +00:00
🔨 Refactor of init scripts
This commit is contained in:
parent
9ae7c0635c
commit
818b2432a8
3 changed files with 2 additions and 6 deletions
|
@ -1,6 +0,0 @@
|
||||||
#!/usr/bin/with-contenv bashio
|
|
||||||
# ==============================================================================
|
|
||||||
# Community Hass.io Add-ons: Traccar
|
|
||||||
# This files check if all user configuration requirements are met
|
|
||||||
# ==============================================================================
|
|
||||||
bashio::config.require.ssl
|
|
|
@ -7,6 +7,8 @@ declare certfile
|
||||||
declare keyfile
|
declare keyfile
|
||||||
declare port
|
declare port
|
||||||
|
|
||||||
|
bashio::config.require.ssl
|
||||||
|
|
||||||
if bashio::config.true 'ssl'; then
|
if bashio::config.true 'ssl'; then
|
||||||
rm /etc/nginx/nginx.conf
|
rm /etc/nginx/nginx.conf
|
||||||
mv /etc/nginx/nginx-ssl.conf /etc/nginx/nginx.conf
|
mv /etc/nginx/nginx-ssl.conf /etc/nginx/nginx.conf
|
Loading…
Add table
Add a link
Reference in a new issue