🔨 Refactor of init scripts

This commit is contained in:
Franck Nijhof 2019-04-22 10:49:18 +02:00
parent 9ae7c0635c
commit 818b2432a8
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3
3 changed files with 2 additions and 6 deletions

View file

@ -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

View file

@ -7,6 +7,8 @@ declare certfile
declare keyfile
declare port
bashio::config.require.ssl
if bashio::config.true 'ssl'; then
rm /etc/nginx/nginx.conf
mv /etc/nginx/nginx-ssl.conf /etc/nginx/nginx.conf