Update OctoPrint version, re-add adding user.

This commit is contained in:
Fredrik Baberg 2022-10-28 16:00:38 +02:00
parent 92e83b7348
commit 1f9136ec26
4 changed files with 12 additions and 11 deletions

View File

@ -1,4 +1,5 @@
- Update icon to colored nozzle. - Update OctoPrint to 1.8.6
- Cleanup Caddy config. - Update icon to coloured nozzle.
- Clean-up Caddy config.
- Fixes to Caddy XDG paths - Fixes to Caddy XDG paths
- Change reverse proxy from nginx to Caddy - Change reverse proxy from nginx to Caddy

View File

@ -9,4 +9,4 @@ labels:
org.opencontainers.image.description: "3DPrinter-OctoPrint addon for Home-Assistant." org.opencontainers.image.description: "3DPrinter-OctoPrint addon for Home-Assistant."
org.opencontainers.image.source: "https://github.com/fredrikbaberg/3dprinter-addons" org.opencontainers.image.source: "https://github.com/fredrikbaberg/3dprinter-addons"
args: args:
OCTOPRINT_VERSION: "1.8.4" OCTOPRINT_VERSION: "1.8.6"

View File

@ -1,5 +1,5 @@
name: "3DPrinter-OctoPrint" name: "3DPrinter-OctoPrint"
version: "2022.10.02" version: "2022.10.03"
slug: "3dprinter-octoprint" slug: "3dprinter-octoprint"
description: "OctoPrint as an addon, no additional bells and whistles." description: "OctoPrint as an addon, no additional bells and whistles."
url: "https://github.com/fredrikbaberg/home-assistant-addons/tree/main/3dprinter-octoprint" url: "https://github.com/fredrikbaberg/home-assistant-addons/tree/main/3dprinter-octoprint"

View File

@ -29,10 +29,10 @@ if [ ! -f /data/config/octoprint/config.yaml ]; then
fi fi
# TODO: Check if user exists before setting password. # TODO: Check if user exists before setting password.
# { # Make sure Ingress user for OctoPrint exists. { # Make sure Ingress user for OctoPrint exists.
# bashio::log.notice "Ensure Ingress user (homeassistant) exist." bashio::log.notice "Ensure Ingress user (homeassistant) exist."
# new_password=$(date +%s | sha256sum | base64 | head -c 32 ; echo) new_password=$(date +%s | sha256sum | base64 | head -c 32 ; echo)
# octoprint --basedir /data/config/octoprint user add homeassistant --password "$new_password" --group users --group admins # 2> /dev/null octoprint --basedir /data/config/octoprint user add homeassistant --password "$new_password" --group users --group admins # 2> /dev/null
# } || { # catch } || { # catch
# bashio::log.warning "Failed to ensure Ingress user exists, may not be able to launch." bashio::log.warning "Failed to ensure Ingress user exists, may not be able to launch."
# } }