From 1445d053618514a80a844d47aff2edd318b8199c Mon Sep 17 00:00:00 2001 From: paukstelis Date: Wed, 24 May 2023 16:50:22 -0400 Subject: [PATCH] fix sets --- octoprint_deploy.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/octoprint_deploy.sh b/octoprint_deploy.sh index 79c9bfe..6ca8cfb 100755 --- a/octoprint_deploy.sh +++ b/octoprint_deploy.sh @@ -380,12 +380,12 @@ write_camera() { echo $CAMPORT >> /etc/camera_ports #config.yaml modifications - only if INUM not set if [ -z "$INUM" ]; then - $OCTOEXEC --basedir $OCTOCONFIG/.$INSTANCE config plugins.classicwebcam.snapshot set "http://localhost:$CAMPORT?action=snapshot" + $OCTOEXEC --basedir $OCTOCONFIG/.$INSTANCE config set plugins.classicwebcam.snapshot "http://localhost:$CAMPORT?action=snapshot" if [ -z "$CAMHAPROXY" ]; then - $OCTOEXEC --basedir $OCTOCONFIG/.$INSTANCE config plugins.classicwebcam.stream set "http://$(hostname).local:$CAMPORT?action=stream" + $OCTOEXEC --basedir $OCTOCONFIG/.$INSTANCE config set plugins.classicwebcam.stream "http://$(hostname).local:$CAMPORT?action=stream" else - $OCTOEXEC --basedir $OCTOCONFIG/.$INSTANCE config plugins.classicwebcam.stream set "/cam_$INSTANCE/?action=stream" + $OCTOEXEC --basedir $OCTOCONFIG/.$INSTANCE config set plugins.classicwebcam.stream "/cam_$INSTANCE/?action=stream" fi $OCTOEXEC --basedir $OCTOCONFIG/.$INSTANCE config append_value --json system.actions "{\"action\": \"Reset video streamer\", \"command\": \"sudo systemctl restart cam_$INSTANCE\", \"name\": \"Restart webcam\"}"