Comment out unused function in script
This commit is contained in:
parent
fee09b8f08
commit
661b346b40
@ -1,5 +1,5 @@
|
|||||||
name: "3DPrinter-OctoPrint"
|
name: "3DPrinter-OctoPrint"
|
||||||
version: "2023.01.0"
|
version: "2023.01.01"
|
||||||
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"
|
||||||
|
|||||||
@ -19,8 +19,9 @@ export BASEDIR="--basedir /data/config/octoprint"
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Update OctoPrint config with settings used for the addon overall (could always be changed)
|
# Update OctoPrint config with settings required for the addon to work properly (should be OK to run each time).
|
||||||
updateConfigRequired() {
|
updateConfigRequired()
|
||||||
|
{
|
||||||
octoprint $BASEDIR config set --bool api.allowCrossOrigin true
|
octoprint $BASEDIR config set --bool api.allowCrossOrigin true
|
||||||
octoprint $BASEDIR config set folder.generated "/tmp/octoprint/generated"
|
octoprint $BASEDIR config set folder.generated "/tmp/octoprint/generated"
|
||||||
octoprint $BASEDIR config set folder.timelapse_tmp "/tmp/octoprint/timelapse/tmp"
|
octoprint $BASEDIR config set folder.timelapse_tmp "/tmp/octoprint/timelapse/tmp"
|
||||||
@ -34,7 +35,7 @@ updateConfigRequired() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Update OctoPrint config with customized settings, not strictly required for addon to work but helps with features.
|
# Update OctoPrint config with customized settings, not strictly required for addon to work but helps with features.
|
||||||
updateConfigCustom() {
|
# updateConfigCustom() {
|
||||||
# Add user, if needed.
|
# Add user, if needed.
|
||||||
# { # 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."
|
||||||
@ -46,7 +47,7 @@ updateConfigCustom() {
|
|||||||
# 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."
|
||||||
# }
|
# }
|
||||||
# Trusted networks, access control etc.
|
# Trusted networks, access control etc.
|
||||||
}
|
# }
|
||||||
|
|
||||||
|
|
||||||
# Create initial OctoPrint config, if missing.
|
# Create initial OctoPrint config, if missing.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user