mirror of
https://github.com/hassio-addons/addon-motioneye.git
synced 2025-05-05 03:31:22 +00:00
⚠️ Added warning logs
This commit is contained in:
parent
822b88ea27
commit
8c2a8f9f7d
1 changed files with 4 additions and 1 deletions
|
@ -9,7 +9,10 @@ source /usr/lib/hassio-addons/base.sh
|
|||
readonly motion='/data/motioneye/motion.conf'
|
||||
|
||||
if hass.config.true 'motion_webcontrol'; then
|
||||
hass.log.info "Enabling motion webcontrol"
|
||||
hass.log.info "Enabling motion webcontrol..."
|
||||
hass.log.warning "This opens up an UNSECURE port to the outside world!"
|
||||
hass.log.warning "This port has NO SSL & NO AUTHENICATION!"
|
||||
hass.log.warning "YOU HAVE BEEN WARNED!"
|
||||
sed -i "s/webcontrol_localhost on/webcontrol_localhost off/" "$motion"
|
||||
else
|
||||
sed -i "s/webcontrol_localhost off/webcontrol_localhost on/" "$motion"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue