ha-3dprinter-addons/3dprinter-octoprint/rootfs/etc/cont-init.d/octoprint.sh
Fredrik Baberg 17c27216d9
Update descriptions (#7)
Update workflows
2022-07-07 23:59:23 +02:00

17 lines
560 B
Bash

#!/usr/bin/with-contenv bashio
# ==============================================================================
# Prepare OctoPrint
# s6-overlay docs: https://github.com/just-containers/s6-overlay
# ==============================================================================
{ # Check if OctoPrint is installed
octoprint --version
} || { # Otherwise install
{ # Check if Python is available
python --version
} || { # Otherwise install
python3 -m venv /data/python/octoprint
}
pip install octoprint==$OCTOPRINT_VERSION
}