|
|
|
@ -94,15 +94,15 @@ touch /opt/docker2/compose/frigate/config.yml
|
|
|
|
|
|
|
|
|
|
camera_index=$((camera_index+1))
|
|
|
|
|
done
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#rm -r /opt/docker2/compose/frigate 2>/dev/null
|
|
|
|
|
#mkdir -p /opt/docker2/compose/frigate
|
|
|
|
|
|
|
|
|
|
#touch /opt/docker2/compose/frigate/config.yml
|
|
|
|
|
rm -r /opt/docker2/compose/frigate 2>/dev/null
|
|
|
|
|
mkdir -p /opt/docker2/compose/frigate
|
|
|
|
|
|
|
|
|
|
touch /opt/docker2/compose/frigate/config.yml
|
|
|
|
|
|
|
|
|
|
#touch /opt/docker2/compose/frigate/docker-compose.yml
|
|
|
|
|
touch /opt/docker2/compose/frigate/docker-compose.yml
|
|
|
|
|
cat > /opt/docker2/compose/frigate/docker-compose.yml <<EOF
|
|
|
|
|
version: "3.9"
|
|
|
|
|
services:
|
|
|
|
@ -140,7 +140,7 @@ EOF
|
|
|
|
|
uci set shortcutmenu.@lists[-1].weburl="$LAN_IP:$port"
|
|
|
|
|
uci set shortcutmenu.@lists[-1].webpath="/"
|
|
|
|
|
uci commit shortcutmenu
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
usage() {
|
|
|
|
|
echo "usage: $0 sub-command"
|
|
|
|
|