fix pip command

This commit is contained in:
paukstelis
2022-06-26 16:24:31 -04:00
parent 8b6b498ce2
commit 9e9e8b98c1

View File

@@ -666,7 +666,7 @@ prepare () {
if [ $INSTALL -gt 1 ]; then if [ $INSTALL -gt 1 ]; then
OCTOEXEC="sudo -u $user /home/$user/OctoPrint/bin/octoprint" 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 "Adding systemctl and reboot to sudo"
echo "$user ALL=NOPASSWD: /usr/bin/systemctl" > /etc/sudoers.d/octoprint_systemctl echo "$user ALL=NOPASSWD: /usr/bin/systemctl" > /etc/sudoers.d/octoprint_systemctl
echo "$user ALL=NOPASSWD: /usr/sbin/reboot" > /etc/sudoers.d/octoprint_reboot echo "$user ALL=NOPASSWD: /usr/sbin/reboot" > /etc/sudoers.d/octoprint_reboot
@@ -806,17 +806,19 @@ prepare () {
systemctl enable octoprint_default.service systemctl enable octoprint_default.service
echo echo
echo echo
#plugins, recommended if prompt_confirm "Would you like to install recommended plugins now?"; then
plugin_menu plugin_menu
#plugins, cloud fi
if prompt_confirm "Would you like to install cloud service plugins now?"; then
plugin_menu_cloud plugin_menu_cloud
fi
#this restart seems necessary in some cases #this restart seems necessary in some cases
systemctl restart octoprint_default.service systemctl restart octoprint_default.service
fi fi
echo 'instance:generic port:5000' > /etc/octoprint_instances echo 'instance:generic port:5000' > /etc/octoprint_instances
echo 'Adding camera port records' echo 'Adding camera port records'
touch /etc/camera_ports 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 "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." echo "If you do this, ALL new instances will have these gcode files."
if prompt_confirm "Move old gcode files to template instance?"; then if prompt_confirm "Move old gcode files to template instance?"; then