From 9e9e8b98c15ed2d95354500a1936a4d34ea93146 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Sun, 26 Jun 2022 16:24:31 -0400 Subject: [PATCH] fix pip command --- octoprint_deploy.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/octoprint_deploy.sh b/octoprint_deploy.sh index ba55c7b..bd8322e 100755 --- a/octoprint_deploy.sh +++ b/octoprint_deploy.sh @@ -666,7 +666,7 @@ prepare () { if [ $INSTALL -gt 1 ]; then OCTOEXEC="sudo -u $user /home/$user/OctoPrint/bin/octoprint" - OCTOPIP="suod -u $user /home/$user/OctoPrint/bin/pip" + OCTOPIP="sudo -u $user /home/$user/OctoPrint/bin/pip" echo "Adding systemctl and reboot to sudo" echo "$user ALL=NOPASSWD: /usr/bin/systemctl" > /etc/sudoers.d/octoprint_systemctl echo "$user ALL=NOPASSWD: /usr/sbin/reboot" > /etc/sudoers.d/octoprint_reboot @@ -806,17 +806,19 @@ prepare () { systemctl enable octoprint_default.service echo echo - #plugins, recommended - plugin_menu - #plugins, cloud - plugin_menu_cloud + if prompt_confirm "Would you like to install recommended plugins now?"; then + plugin_menu + fi + if prompt_confirm "Would you like to install cloud service plugins now?"; then + plugin_menu_cloud + fi #this restart seems necessary in some cases systemctl restart octoprint_default.service fi echo 'instance:generic port:5000' > /etc/octoprint_instances echo 'Adding camera port records' touch /etc/camera_ports - if [ $MOVE -eq 1 ]; then + if [ -n $MOVE ]; then echo "You can move your previously uploaded gcode to the template instance now." echo "If you do this, ALL new instances will have these gcode files." if prompt_confirm "Move old gcode files to template instance?"; then