Logan Gartner
ffdd76098f
Removed the stupid Mathematica EULA agreement Added screen timeout adjustments Shuffled files around to more appropriate places Added a TODO file so that I can keep track of stuff to add OctoPrint account is now a system account and cannnot be logged into First-time is now in profile.d. It is now ran by getty which automatically logs in as root on first boot and then runs the script First-time now uses chpasswd instead of passwd (passwd is shit for this)
18 lines
520 B
Bash
Executable file
18 lines
520 B
Bash
Executable file
#!/bin/bash -e
|
|
|
|
install -m 644 files/octoprint.service ${ROOTFS_DIR}/etc/systemd/system/octoprint.service
|
|
|
|
on_chroot << EOF
|
|
systemctl set-default multi-user.target
|
|
if ! pip list | grep -F octoprint; then
|
|
if [ -d /home/octoprint ]; then
|
|
cd /home/octoprint || exit 1
|
|
if [[ ! -d OctoPrint ]]; then mkdir OctoPrint; fi || 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
|
|
fi
|
|
fi
|
|
EOF
|