parent
642926ae73
commit
5d74642e44
2 changed files with 7 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
python3-pip
|
python-pip
|
||||||
python3-dev
|
python-dev
|
||||||
python3-setuptools
|
python-setuptools
|
||||||
python3-venv
|
python-virtualenv
|
||||||
git
|
git
|
||||||
libyaml-dev
|
libyaml-dev
|
||||||
nginx
|
nginx
|
||||||
|
|
|
@ -23,8 +23,9 @@ systemctl disable nginx
|
||||||
|
|
||||||
# If OctoPrint already exists, skip this (for debugging)
|
# If OctoPrint already exists, skip this (for debugging)
|
||||||
if [[ ! -f /srv/octoprint/bin/octoprint ]]; then
|
if [[ ! -f /srv/octoprint/bin/octoprint ]]; then
|
||||||
python3 -m venv /srv/octoprint || exit 1
|
cd /srv/ || exit 1
|
||||||
source /srv/octoprint/bin/activate || exit 1
|
virtualenv octoprint || exit 1
|
||||||
|
source octoprint/bin/activate || exit 1
|
||||||
pip install pip --upgrade
|
pip install pip --upgrade
|
||||||
pip install octoprint || exit 1
|
pip install octoprint || exit 1
|
||||||
# Fix permissions
|
# Fix permissions
|
||||||
|
|
Loading…
Reference in a new issue