⚠️ Added warning logs

This commit is contained in:
Franck Nijhof 2019-02-04 21:10:26 +01:00 committed by GitHub
parent 822b88ea27
commit 8c2a8f9f7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,10 @@ source /usr/lib/hassio-addons/base.sh
readonly motion='/data/motioneye/motion.conf' readonly motion='/data/motioneye/motion.conf'
if hass.config.true 'motion_webcontrol'; then 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" sed -i "s/webcontrol_localhost on/webcontrol_localhost off/" "$motion"
else else
sed -i "s/webcontrol_localhost off/webcontrol_localhost on/" "$motion" sed -i "s/webcontrol_localhost off/webcontrol_localhost on/" "$motion"