fix cam issue

This commit is contained in:
paukstelis
2022-05-27 17:38:38 -04:00
parent 7124797533
commit 883a44e1e2
2 changed files with 3 additions and 2 deletions

View File

@@ -9,4 +9,5 @@ server:
commands:
serverRestartCommand: sudo systemctl restart INSTANCE
systemRestartCommand: sudo reboot
systemShutdownCommand: sudo shutdown -n now
firstRun: true

View File

@@ -266,7 +266,7 @@ new_instance () {
sed -i "s/upnpUuid: .*/upnpUuid: $(uuidgen)/" $OCTOCONFIG/.$INSTANCE/config.yaml
#Set port
sed -i "/serial:/a\ port: /dev/octo_$INSTANCE" $OCTOCONFIG/.$INSTANCE/config.yaml
if [[ -n $CAM || -n $USBCAM ]]; then
write_camera
fi
@@ -386,7 +386,7 @@ add_camera() {
done
fi
if [ "$camopt" == generic]; then
if [ "$camopt" == generic ]; then
echo "Don't add cameras to the generic instance."
main_menu
fi