2020-08-11 03:04:29 -04:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2020-08-11 05:18:14 -04:00
|
|
|
on_chroot << EOF
|
|
|
|
if [ -d /home/octoprint ]; then
|
2020-08-11 04:01:25 -04:00
|
|
|
cd /home/octoprint || exit 1
|
2020-08-11 03:04:29 -04:00
|
|
|
mkdir OctoPrint || exit 1
|
|
|
|
cd OctoPrint || exit 1
|
|
|
|
virtualenv venv || exit 1
|
|
|
|
source venv/bin/activate || exit 1
|
|
|
|
pip install pip --upgrade || exit 1
|
|
|
|
pip install octoprint || exit 1
|
2020-08-11 05:18:14 -04:00
|
|
|
fi
|
|
|
|
EOF
|