feat: KIAUH v4.0.0 #191

Merged
dw-0 merged 453 commits from v4-rc into master 2022-05-29 20:11:16 +02:00
Showing only changes of commit c1d0f295e2 - Show all commits

View File

@@ -152,15 +152,21 @@ function install_octoprint() {
return 1
fi
cd "${tmp}" && virtualenv --python=python3 venv
cd "${tmp}"
### activate virtualenv
source venv/bin/activate
pip install pip --upgrade
pip install --no-cache-dir octoprint
if virtualenv --python=python3 venv; then
### activate virtualenv
source venv/bin/activate
pip install pip --upgrade
pip install --no-cache-dir octoprint
### leave virtualenv
deactivate
else
log_error "failure while creating python3 OctoPrint env"
error_msg "Creation of OctoPrint virtualenv failed!"
exit 1
fi
### leave virtualenv
deactivate
cd "${HOME}"
}