Merge pull request #17 from fredrikbaberg/dev
Don't generate account for now
This commit is contained in:
commit
e5a43479b4
@ -28,12 +28,12 @@ if [ ! -f /data/config/octoprint/config.yaml ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# TODO: Check if user already exists before setting password.
|
||||
{ # Make sure Ingress user for OctoPrint exists.
|
||||
bashio::log.notice "Ensure Ingress user (homeassistant) exist."
|
||||
# new_password=$(date +%s | sha256sum | base64 | head -c 32 ; echo)
|
||||
new_password=homeassistant
|
||||
octoprint --basedir /data/config/octoprint user add homeassistant --password "$new_password" --group users --group admins # 2> /dev/null
|
||||
} || { # catch
|
||||
bashio::log.warning "Failed to ensure Ingress user exists, may not be able to launch."
|
||||
}
|
||||
# # TODO: Check if user already exists before setting password.
|
||||
# { # Make sure Ingress user for OctoPrint exists.
|
||||
# bashio::log.notice "Ensure Ingress user (homeassistant) exist."
|
||||
# # new_password=$(date +%s | sha256sum | base64 | head -c 32 ; echo)
|
||||
# new_password=homeassistant
|
||||
# octoprint --basedir /data/config/octoprint user add homeassistant --password "$new_password" --group users --group admins # 2> /dev/null
|
||||
# } || { # catch
|
||||
# bashio::log.warning "Failed to ensure Ingress user exists, may not be able to launch."
|
||||
# }
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
accessControl:
|
||||
autologinAs: homeassistant
|
||||
autologinLocal: true
|
||||
localNetworks:
|
||||
- 127.0.0.0/8
|
||||
- ::1/128
|
||||
- 172.30.32.2
|
||||
# accessControl:
|
||||
# autologinAs: homeassistant
|
||||
# autologinLocal: true
|
||||
# localNetworks:
|
||||
# - 127.0.0.0/8
|
||||
# - ::1/128
|
||||
# - 172.30.32.2
|
||||
api:
|
||||
allowCrossOrigin: true
|
||||
folder:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user