rework ubuntu

This commit is contained in:
paukstelis
2022-02-04 20:12:39 -05:00
parent aa9dce595e
commit 6d4070e57f

View File

@@ -512,11 +512,10 @@ prepare () {
-e "s#OCTOCONFIG#/home/$user/#" \
-e "s/NEWINSTANCE/octoprint/" \
-e "s/NEWPORT/5000/" > /etc/systemd/system/octoprint_default.service
echo 'Starting generic service on port 5000'
systemctl start octoprint_default.service
systemctl stop octoprint_default.service
echo 'Updating config.yaml'
sudo -u $user mkdir /home/$user/.octoprint
sudo -u $user cp -p $SCRIPTDIR/config.basic /home/$user/.octoprint/config.yaml
echo 'Starting generic service on port 5000'
systemctl start octoprint_default.service
#install mjpg-streamer, not doing any error checking or anything
echo 'Installing mjpeg-streamer'