This repository has been archived by the owner on Mar 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⬆️ Upgrade to base 3.0.0 and migrate to bashio
- Loading branch information
Showing
10 changed files
with
62 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
{ | ||
"args": {}, | ||
"build_from": { | ||
"aarch64": "hassioaddons/base-aarch64:2.3.2", | ||
"amd64": "hassioaddons/base-amd64:2.3.2", | ||
"armhf": "hassioaddons/base-armhf:2.3.2", | ||
"i386": "hassioaddons/base-i386:2.3.2" | ||
"aarch64": "hassioaddons/base-aarch64:3.0.0", | ||
"amd64": "hassioaddons/base-amd64:3.0.0", | ||
"armhf": "hassioaddons/base-armhf:3.0.0", | ||
"armv7": "hassioaddons/base-armv7:3.0.0", | ||
"i386": "hassioaddons/base-i386:3.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
"aarch64", | ||
"amd64", | ||
"armhf", | ||
"armv7", | ||
"i386" | ||
], | ||
"boot": "auto", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,16 @@ | ||
#!/usr/bin/with-contenv bash | ||
#!/usr/bin/with-contenv bashio | ||
# ============================================================================== | ||
# Community Hass.io Add-ons: Matrix | ||
# This files check if all user configuration requirements are met | ||
# ============================================================================== | ||
# shellcheck disable=SC1091 | ||
source /usr/lib/hassio-addons/base.sh | ||
# Check SSL settings | ||
bashio::config.require.ssl | ||
|
||
# Check SSL requirements, if enabled | ||
if hass.config.true 'ssl'; then | ||
if ! hass.config.has_value 'certfile'; then | ||
hass.die 'SSL is enabled, but no certfile was specified' | ||
fi | ||
|
||
if ! hass.config.has_value 'keyfile'; then | ||
hass.die 'SSL is enabled, but no keyfile was specified' | ||
fi | ||
|
||
if ! hass.file_exists "/ssl/$(hass.config.get 'certfile')"; then | ||
hass.die 'The configured certfile is not found' | ||
fi | ||
|
||
if ! hass.file_exists "/ssl/$(hass.config.get 'keyfile')"; then | ||
hass.die 'The configured keyfile is not found' | ||
fi | ||
fi | ||
|
||
if ! hass.config.has_value 'server_name'; then | ||
hass.die 'You must specify your server name! E.g.: yourddns_url.com' | ||
if ! bashio::config.has_value 'server_name'; then | ||
bashio::log.fatal '' | ||
bashio::log.fatal 'You must specify your server name!' | ||
bashio::log.fatal 'This should be the hostname of your server' | ||
bashio::log.fatal 'without "http://" / "https://" and the port.' | ||
bashio::log.fatal 'Refer to the "server_name" option in the docs for more info.' | ||
bashio::exit.nok | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
#!/usr/bin/with-contenv bash | ||
#!/usr/bin/with-contenv bashio | ||
# ============================================================================== | ||
# Community Hass.io Add-ons: Matrix | ||
# Runs the Synapse daemon | ||
# ============================================================================== | ||
# shellcheck disable=SC1091 | ||
source /usr/lib/hassio-addons/base.sh | ||
|
||
exec python3.6 -B -m synapse.app.homeserver -c /config/matrix.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters